Sha256: 7dc4e17db9e7fd0db20347e88b2ec24609a228bc6efc16ce22216c6cffda8e68

Contents?: true

Size: 1.52 KB

Versions: 5

Compression:

Stored size: 1.52 KB

Contents

<h2 class="sr-only">Component description</h2>
<% unless blacklight_config.show.component_metadata_partials.nil? %>
  <% blacklight_config.show.component_metadata_partials.each do |metadata| %>
    <% next unless fields_have_content?(@document, metadata) %>
    <%= render partial: 'custom_metadata', locals: { document: @document, field_accessor: metadata } %>
  <% end %>
<% end %>
<!-- Section below will be moved into its own partial later -->
<%= content_tag(:div, id: t("arclight.views.show.sections.collection_context_field").parameterize) do %>
  <h3 class='al-show-sub-heading'>
    <%= t("arclight.views.show.sections.collection_context_field") %>
  </h3>
  <%= content_tag(
    :div, '',
    class: 'al-context',
    data: {
      arclight_collection_context: true,
      arclight_collection_context_url: solr_document_path(
        normalize_id(@document.eadid)
      )
    }
  ) %>
  <%= content_tag(
    :div, '',
    class: 'al-ancestors',
    data: {
      arclight_ancestors: @document.parent_ids,
      arclight_path: search_catalog_path(hierarchy_context: 'component')
    }
  ) %>
  <%= content_tag(
    :div, '',
    class: "al-contents al-hierarchy-level-#{@document.component_level} extra-indent documents-hierarchy",
    data: {
      arclight: {
        hierarchy: true,
        level: @document.component_level,
        path: search_catalog_path(hierarchy_context: 'component'),
        name: @document.collection_name,
        parent: @document.parent_ids.last,
        highlightId: @document.id
      }
    }
  ) %>

<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arclight-0.1.4 app/views/catalog/_component_overview.html.erb
arclight-0.1.3 app/views/catalog/_component_overview.html.erb
arclight-0.1.2 app/views/catalog/_component_overview.html.erb
arclight-0.1.1 app/views/catalog/_component_overview.html.erb
arclight-0.1.0 app/views/catalog/_component_overview.html.erb