Skip to content

Commit

Permalink
Merge pull request #1049 from UNC-Libraries/hyc-1812
Browse files Browse the repository at this point in the history
HYC-1812 - Collection page masonry view errors
  • Loading branch information
sharonluong authored Nov 14, 2023
2 parents 13ee53a + daf3ad9 commit e9ea752
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,16 @@ def single_item_search_builder(id)
config.index.thumbnail_field = 'thumbnail_path_ss'
config.index.constraints_component = Hyc::ConstraintsComponent

config.add_results_document_tool(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?)
# We have disabled the bookmark routes, so commenting out all bookmark related config
# config.add_results_document_tool(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?)
config.add_results_collection_tool(:sort_widget)
config.add_results_collection_tool(:per_page_widget)
config.add_results_collection_tool(:view_type_group)
config.add_show_tools_partial(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?)
# config.add_show_tools_partial(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?)
config.add_show_tools_partial(:email, callback: :email_action, validator: :validate_email_params)
config.add_show_tools_partial(:sms, if: :render_sms_action?, callback: :sms_action, validator: :validate_sms_params)
config.add_show_tools_partial(:citation)
config.add_nav_action(:bookmark, partial: 'blacklight/nav/bookmark', if: :render_bookmarks_control?)
# config.add_nav_action(:bookmark, partial: 'blacklight/nav/bookmark', if: :render_bookmarks_control?)
config.add_nav_action(:search_history, partial: 'blacklight/nav/search_history')

# solr fields that will be treated as facets by the blacklight application
Expand Down

0 comments on commit e9ea752

Please sign in to comment.