Module: CommonwealthVlrEngine::InstitutionsHelperBehavior
- Included in:
- InstitutionsHelper
- Defined in:
- app/helpers/commonwealth_vlr_engine/institutions_helper_behavior.rb
Instance Method Summary collapse
-
#link_to_all_inst_items(link_class) ⇒ Object
link to view all items from an institution.
-
#render_institutions_index(documents = nil, locals = {}) ⇒ Object
replaces render_document_index in institutions/index partial so we can use local index_map_institutions partial for map view.
-
#should_render_inst_az? ⇒ Boolean
whether the A-Z link menu should be displayed in institutions#index.
Instance Method Details
#link_to_all_inst_items(link_class) ⇒ Object
link to view all items from an institution
5 6 7 8 9 |
# File 'app/helpers/commonwealth_vlr_engine/institutions_helper_behavior.rb', line 5 def link_to_all_inst_items(link_class) link_to(t('blacklight.institutions.browse.all'), search_catalog_path(:f => {blacklight_config.institution_field => [@institution_title]}), :class => link_class) end |
#render_institutions_index(documents = nil, locals = {}) ⇒ Object
replaces render_document_index in institutions/index partial so we can use local index_map_institutions partial for map view
13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/helpers/commonwealth_vlr_engine/institutions_helper_behavior.rb', line 13 def render_institutions_index documents = nil, locals = {} documents ||= @document_list if document_index_view_type.to_s == 'maps' render :partial => 'catalog/index_mapview_institutions', :locals => {:geojson_features => serialize_geojson(map_facet_values, nil, {partial: 'institutions/map_institutions_search'})} else render_document_index_with_view(document_index_view_type, documents, locals) end end |
#should_render_inst_az? ⇒ Boolean
whether the A-Z link menu should be displayed in institutions#index
26 27 28 |
# File 'app/helpers/commonwealth_vlr_engine/institutions_helper_behavior.rb', line 26 def should_render_inst_az? false end |