Sha256: 8dc90c7997fc0aa0de424e44bb6de550c128dbb3fb876206a7a5826603527b04
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 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'), search_catalog_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_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 # whether the A-Z link menu should be displayed in institutions#index def should_render_inst_az? false end end end
Version data entries
4 entries across 4 versions & 1 rubygems