<% @page_title = t('blacklight.search.show.title', :document_title => @document[blacklight_config.show.title_field], :application_name => application_name) %> <% content_for(:head) { render_link_rel_alternates } %> <%# this should be in a partial -%>

<%= @collection_title %>

<% if t('blacklight.home.browse.institutions.enabled') %>

<% if @document[:institution_pid_ssi] %> <%= link_to(@document[blacklight_config.institution_field.to_sym][0], institutions_path + '/' + @document[:institution_pid_ssi], :id => 'institution_link') %> <% elsif @document[:physical_location_ssim] %> <%= @document[:physical_location_ssim][0] %> <% end %>

<% end %>
<% if @collection_image_pid && @collection_image_info %> <% image_title = @collection_image_info[:title] %> <% if @collection_image_pid.match(/oai/) || @collection_image_info[:access_master] == false %> <% img_element = image_tag(datastream_disseminator_url(@collection_image_pid,'thumbnail300'), :alt => image_title, :class => 'collection_img_show') %> <% else %> <% img_element = iiif_image_tag(@collection_image_pid, {:size => 'pct:20', :alt => image_title, :class => 'collection_img_show'}) %> <% end %> <%= link_to(img_element, solr_document_path(@collection_image_info[:pid])) %>
<%= link_to(image_title, solr_document_path(@collection_image_info[:pid])) %>
<% else %> <%= image_tag(collection_icon_path, :alt => @collection_title, :class => 'collection_img_show') %> <% end %>
<%= render :partial => 'search_form_collection', :locals => {:document => @document} %> or
<% if @document[blacklight_config.institution_field.to_sym] %> <%= link_to_all_col_items(@collection_title, t('blacklight.home.browse.institutions.enabled') ? @document[blacklight_config.institution_field.to_sym] : nil, 'btn btn-info view-all-col') %> <% end %>
<% if @document[:abstract_tsim] %> <% @document[:abstract_tsim].each do |abstract| %> <%= abstract.html_safe %> <% end %> <% end %>
<% if has_facet_values? %w[related_item_series_ssim] %>
<%= render :partial=> 'catalog/facets_series' %>
<% end %> <% # map for collections#show view %> <% unless @response.aggregations[map_facet_field].items.empty? %>

<%= t('blacklight.collections.map.title') %>

<%= render :partial => 'catalog/index_mapview', :locals => {:geojson_features => serialize_geojson(map_facet_values, 'index')} %>
<% end %>
<% if @document.respond_to?(:export_as_openurl_ctx_kev) %> <% end %>