Sha256: 549712be17dc1985e501eb17df14b9068073284184a181edbfa83660fb6ef028
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
module CommonwealthVlrEngine module InstitutionsHelperBehavior # link to view all items from an institution def link_to_all_inst_items(link_class) link_to(t('blacklight.institutions.browse.all'), catalog_index_path(:f => {blacklight_config.institution_field => [@institution_title]}), :class => link_class) end # replaces render_document_index in institutions/index partial # so we can use local index_map_institutions partial for map view def render_institutions_index documents = nil, locals = {} documents ||= @document_list if document_index_view_type.to_s == 'maps' render :partial => 'catalog/index_map_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 # whether the A-Z link menu should be displayed in institutions#index def should_render_inst_az? false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commonwealth-vlr-engine-0.0.1 | app/helpers/commonwealth_vlr_engine/institutions_helper_behavior.rb |