Module: CommonwealthVlrEngine::CollectionsHelperBehavior
- Included in:
- CollectionsHelper
- Defined in:
- app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb
Instance Method Summary collapse
-
#link_to_all_col_items(col_title, institution_name = nil, link_class) ⇒ Object
link to view all items in a collection.
-
#should_render_col_az? ⇒ Boolean
whether the A-Z link menu should be displayed in collections#index.
Instance Method Details
#link_to_all_col_items(col_title, institution_name = nil, link_class) ⇒ Object
link to view all items in a collection
5 6 7 8 9 10 11 |
# File 'app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb', line 5 def link_to_all_col_items(col_title, institution_name=nil, link_class) facet_params = {blacklight_config.collection_field => [col_title]} facet_params[blacklight_config.institution_field] = institution_name if institution_name link_to(t('blacklight.collections.browse.all'), search_catalog_path(:f => facet_params), :class => link_class) end |
#should_render_col_az? ⇒ Boolean
whether the A-Z link menu should be displayed in collections#index
14 15 16 |
# File 'app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb', line 14 def should_render_col_az? false end |