Sha256: 3220091b9f5ff17254a905ad049394f5d0917934842fee398b6f6bee431ae281

Contents?: true

Size: 1.81 KB

Versions: 17

Compression:

Stored size: 1.81 KB

Contents

<% cache([manifestation, fragment: 'show_holding_html', role: current_user_role_name, locale: @locale]) do %>
<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>
  <%- items.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) %>
        <%= render 'manifestations/circulation_status', item: item %>
      <% end %>
    </tr>
    <% if policy(item).update? %>
      <script>
        $(function(){
          $('a#item_identifier_item_<%= item.id %>').data(
            'powertip',
            'item_identifier: <%= item.item_identifier %>'
          );
          $('a#item_identifier_item_<%= item.id %>').powerTip({
            placement: 'e',
            mouseOnToPopup: true
          });
        });
      </script>
      <%= render 'items/tooltip', item: item %>
    <% end %>
  <%- end -%>
</table>
</div>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.17 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.16 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.15 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.14 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.13 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.12 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.11 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.10 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.10.rc.3 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.10.rc.2 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.10.rc.1 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.9 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.8 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.7 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.6 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.3.5 app/views/manifestations/_show_holding.html.erb