Skip to content

Commit

Permalink
Add bookmark action to browse results list
Browse files Browse the repository at this point in the history
fixes #641
  • Loading branch information
hackartisan committed Oct 9, 2019
1 parent f5e2fc6 commit d81685b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def unique_custom_fields
config.show.partials.insert(1, :universal_viewer)
config.view.embed.partials = ['universal_viewer']

# Make browse results doc actions consistent with search result doc actions
config.browse.document_actions = config.index.document_actions

## Default parameters to send to solr for all search-like requests. See also SolrHelper#solr_search_params
config.default_solr_params = {
qt: 'search',
Expand Down
4 changes: 4 additions & 0 deletions spec/features/browse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@
it 'hides the privately accessible items and updates for deleted items' do
expect(page).to have_css '.item-count', text: '1 item'
end

it 'presents the bookmark action' do
expect(page).to have_content "Bookmark"
end
end
end
end

0 comments on commit d81685b

Please sign in to comment.