<%= t('page.listing', :model => t('activerecord.models.item')) -%>

<%= notice %>

<%= render 'manifestations/title', :manifestation => @manifestation if @manifestation -%>
<%= form_for :items, :url => items_path, :html => {:method => 'get'} do -%>

<%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%> <%= hidden_field_tag :manifestation_id, @manifestation.id if @manifestation -%> <%= submit_tag t('page.search') -%> <%= set_focus_on_search_form -%>

<%- end -%>
<% if defined?(EnjuCirculation) %> <% end %> <%- @items.each do |item| -%> <% if defined?(EnjuCirculation) %> <% end %> <%- end -%>
<%= t('activerecord.attributes.item.item_identifier') -%> <%= t('activerecord.models.library') -%> <%= t('activerecord.models.shelf') -%> <%= t('activerecord.attributes.item.call_number') -%><%= t('activerecord.models.circulation_status') -%>
<%- if item.item_identifier? -%> <%= link_to item.item_identifier, item -%> <%- else -%> (<%= link_to t('item.no_number'), item -%>) <%- end -%> <%= link_to item.shelf.library.display_name.localize, item.shelf.library %> <%= link_to item.shelf_display_name.localize, item.shelf -%> <%= render 'items/shelf_picture', :item => item -%> <%= item.call_number -%> <%= 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 -%>
<%= paginate(@items) -%>