Sha256: d35a7531522e923cb75e1cd9eada377da8122430e0605628119374e8cc2076f6

Contents?: true

Size: 1.99 KB

Versions: 18

Compression:

Stored size: 1.99 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>
    <% if can? :update, item %>
      <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>

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
enju_flower-0.1.0.pre12 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre11 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre10 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre9 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre8 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre7 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre6 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre5 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre4 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre3 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre2 app/views/manifestations/_show_holding.html.erb
enju_flower-0.1.0.pre app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre19 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre18 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre17 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre16 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre15 app/views/manifestations/_show_holding.html.erb
enju_biblio-0.1.0.pre14 app/views/manifestations/_show_holding.html.erb