Sha256: 27fbfd7ab96a8512d5554bbdeb888188bba98242eb72110750e5fe7b9b25937e

Contents?: true

Size: 1.64 KB

Versions: 21

Compression:

Stored size: 1.64 KB

Contents

<%= render 'previous_next_doc' if @search_context && search_session['document_id'] == @document.id %>

<% @page_title = t('blacklight.search.show.title', document_title: Deprecation.silence(Blacklight::BlacklightHelperBehavior) { document_show_html_title }, application_name: application_name).html_safe %>
<% content_for(:head) { render_link_rel_alternates } %>

<%= render (blacklight_config.view_config(:show).document_component || Blacklight::DocumentComponent).new(presenter: document_presenter(@document), component: :div, title_component: :h1, show: true) do |component| %>
  <% component.footer do %>
    <% if @document.respond_to?(:export_as_openurl_ctx_kev) %>
      <!--
           // COinS, for Zotero among others.
           // This document_partial_name(@document) business is not quite right,
           // but has been there for a while.
      -->
      <span class="Z3988" title="<%= @document.export_as_openurl_ctx_kev(Deprecation.silence(Blacklight::RenderPartialsHelperBehavior) { document_partial_name(@document) }) %>"></span>
    <% end %>
  <%  end %>

  <%# Use :body for complete backwards compatibility (overriding the component body markup),
        but if the app explicitly  opted-in to components, make the partials data available as :partials to ease migrations pain %>
  <% component.public_send(blacklight_config.view_config(:show).document_component.blank? && blacklight_config.view_config(:show).partials.any? ? :body : :partial) do %>
    <div id="doc_<%= @document.id.to_s.parameterize %>">
      <%= render_document_partials @document, blacklight_config.view_config(:show).partials, component: component %>
    </div>
  <% end %>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
blacklight-7.25.1 app/views/catalog/_show_main_content.html.erb
blacklight-7.25.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.24.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.23.0.1 app/views/catalog/_show_main_content.html.erb
blacklight-7.23.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.22.2 app/views/catalog/_show_main_content.html.erb
blacklight-7.22.1 app/views/catalog/_show_main_content.html.erb
blacklight-7.22.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.21.2 app/views/catalog/_show_main_content.html.erb
blacklight-7.21.1 app/views/catalog/_show_main_content.html.erb
blacklight-7.21.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.20.1 app/views/catalog/_show_main_content.html.erb
blacklight-7.20.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.19.2 app/views/catalog/_show_main_content.html.erb
blacklight-7.19.1 app/views/catalog/_show_main_content.html.erb
blacklight-7.19.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.18.1 app/views/catalog/_show_main_content.html.erb
blacklight-7.18.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.17.2 app/views/catalog/_show_main_content.html.erb
blacklight-7.17.1 app/views/catalog/_show_main_content.html.erb