Sha256: 44bf0f9b507e02409a542c08cbd7e43c4c74ccfa4bb09f8b7aa0b29b0918cab0

Contents?: true

Size: 1.72 KB

Versions: 10

Compression:

Stored size: 1.72 KB

Contents

<%= render(Blacklight::SearchContextComponent.new(search_context: @search_context, search_session: search_session)) if 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.with_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? ? :with_body : :with_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

10 entries across 10 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.39.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.38.0 app/views/catalog/_show_main_content.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/views/catalog/_show_main_content.html.erb
blacklight-7.37.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.36.2 app/views/catalog/_show_main_content.html.erb
blacklight-7.36.1 app/views/catalog/_show_main_content.html.erb
blacklight-7.36.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.35.0 app/views/catalog/_show_main_content.html.erb
blacklight-7.34.0 app/views/catalog/_show_main_content.html.erb