sul-dlss/argo

View on GitHub
app/components/show/item/overview_component.html.erb

Summary

Maintainability
Test Coverage
<table class="table table-sm mb-5 caption-header border">
    <caption class="header">Overview</caption>
    <tbody>
      <tr>
        <th class="col-3" scope="row">DRUID</th>
        <td>
            <%= id %>
        </td>
      </tr>

      <tr>
        <th class="col-3" scope="row">Admin policy</th>
        <td>
          <%= render Show::GovernedByComponent.new(document: @solr_document, presenter: @presenter) %>
        </td>
      </tr>

      <tr>
        <th class="col-3" scope="row">Collection</th>
        <td>
          <%= render Show::IsMemberOfComponent.new(document: @solr_document, presenter: @presenter) %>
        </td>
      </tr>

      <tr>
        <th class="col-3" scope="row">Status</th>
        <td>
          <%= status %>
        </td>
      </tr>

      <tr>
        <th class="col-3" scope="row">Access rights</th>
        <td>
          <%= render Show::Item::AccessRightsComponent.new(presenter: @presenter) %>
        </td>
      </tr>

      <tr>
        <th class="col-3" scope="row">Copyright</th>
        <td>
          <%= render Show::CopyrightComponent.new(presenter: @presenter) %>
        </td>
      </tr>

      <tr>
        <th class="col-3" scope="row">License</th>
        <td>
          <%= render Show::LicenseComponent.new(presenter: @presenter) %>
        </td>
      </tr>

      <tr>
        <th class="col-3" scope="row">Use and reproduction</th>
        <td>
          <%= render Show::UseStatementComponent.new(presenter: @presenter) %>
        </td>
      </tr>
    </tbody>
  </table>