Sha256: b60ee52a82043638d1bb5d6ab7269558e4fd6265e9d12e05360f435a897252e1

Contents?: true

Size: 1.55 KB

Versions: 27

Compression:

Stored size: 1.55 KB

Contents

<div class="holding">
<table class="table table-striped holding">
  <tr>
    <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
    <th><%= t('activerecord.models.library') -%></th>
    <th><%= t('activerecord.models.shelf') -%></th>
    <th><%= t('activerecord.attributes.item.call_number') -%></th>
    <% if defined?(EnjuCirculation) %>
      <th><%= t('activerecord.models.circulation_status') -%></th>
    <% end %>
  </tr>
  <%- manifestation.items.on_shelf.each do |item| -%>
    <tr>
      <td>
        <%- if item.item_identifier? -%>
          <%= link_to(item.item_identifier, item, :id => "item_identifier_item_#{item.id}") -%>
        <%- else -%>
          (<%= link_to t('item.no_number'), item -%>)
        <%- end -%>
      </td>
      <td>
        <%= link_to(item.shelf.library.display_name.localize, item.shelf.library, :id => "library_item_#{item.id}") %>
      </td>
      <td>
        <%= link_to(item.shelf_display_name.localize, item.shelf, :id => "shelf_item_#{item.id}")-%>
        <%= render 'items/shelf_picture', :item => item -%>
      </td>
      <td>
        <%= item.call_number -%>
      </td>
      <% if defined?(EnjuCirculation) %>
        <td>
          <%= item.circulation_status.display_name.localize if item.circulation_status -%>
          <%- if item.rent? -%>
            (
              <%= t('activerecord.attributes.checkout.due_date') -%>:
              <%= l(item.checkouts.first.due_date, :format => :short) -%>
            )
          <%- end -%>
        </td>
      <% end %>
    </tr>
  <%- end -%>
</table>
</div>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre46 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre45 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre44 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre43 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre42 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre41 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre40 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre39 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre38 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre37 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre36 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre35 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre34 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre33 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre32 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre31 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre30 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre29 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre28 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre27 app/views/manifestations/_show_holding.html.erb