Module: Spotlight::BrowseHelper
- Includes:
- BlacklightConfigurationHelper, RenderingHelper
- Defined in:
- app/helpers/spotlight/browse_helper.rb
Overview
Helper for browse views
Instance Method Summary collapse
-
#default_document_index_view_type ⇒ Object
Override Blacklight’s #default_document_index_view_type helper to use a different default view when presenting browse categories.
- #document_index_view_type ⇒ Object
Methods included from RenderingHelper
Instance Method Details
#default_document_index_view_type ⇒ Object
Override Blacklight’s #default_document_index_view_type helper to use a different default view when presenting browse categories
19 20 21 22 23 24 25 |
# File 'app/helpers/spotlight/browse_helper.rb', line 19 def default_document_index_view_type if view_available? default_browse_index_view_type default_browse_index_view_type else super end end |
#document_index_view_type ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/helpers/spotlight/browse_helper.rb', line 8 def document_index_view_type if @search && @search.default_index_view_type.present? && params[:view].blank? blacklight_config.view[@search.default_index_view_type].key else super end end |