<%= flash[:message] -%>

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

<%= notice %>

<%- if @item.manifestation -%> <%= render 'manifestations/title', manifestation: @item.manifestation -%> <%- end -%>

<%= t('activerecord.attributes.item.item_identifier') -%>: <%= @item.item_identifier -%>

<%= t('activerecord.attributes.item.binding_item_identifier') -%>: <%= @item.binding_item_identifier -%>

<%= t('activerecord.models.shelf') -%>: <%= link_to(@item.shelf_display_name.localize, @item.shelf, id: "shelf_item_#{@item.id}") -%> <%= render 'items/shelf_picture', item: @item -%> (<%= link_to(@item.shelf.library.display_name.localize, @item.shelf.library, id: "library_item_#{@item.id}") -%>)

<% if defined?(EnjuCirculation) %>

<%= t('activerecord.attributes.item.checkout_type') -%>: <%= link_to @item.checkout_type.display_name.localize, @item.checkout_type -%>

<%= t('activerecord.models.lending_policy') -%>:

<%= t('activerecord.models.circulation_status') -%>: <%= link_to @item.circulation_status.display_name.localize, @item.circulation_status -%> <%- if current_user.try(:has_role?, 'Librarian') -%> <%- unless @item.checkouts.not_returned.blank? -%> (<%= link_to t('item.current_checkout'), @item.checkouts.not_returned.first -%>) <%- end -%> <%- end -%>

<%= t('activerecord.models.use_restriction') -%>: <% if @item.use_restriction %>

<% end %>

<% end %>

<%= t('activerecord.attributes.item.include_supplements') -%>: <%= localized_boolean(@item.include_supplements) -%>

<%= t('activerecord.attributes.item.required_role_id') -%>: <%= @item.required_role.name -%>

<%= t('activerecord.attributes.item.call_number') -%>: <%= @item.call_number -%>

<%= t('activerecord.models.budget_type') -%>: <%= @item.budget_type.try(:display_name).try(:localize) -%>

<%= t('activerecord.models.bookstore') -%>: <%= @item.bookstore.try(:name) -%>

<%= t('activerecord.attributes.item.price') -%>: <%= @item.price -%>

<%= t('activerecord.attributes.item.url') -%>: <%= @item.url -%>

<%= t('activerecord.attributes.item.acquired_at') -%>: <%= l(@item.acquired_at, format: :only_date) if @item.acquired_at -%>

<%= t('activerecord.attributes.item.binding_call_number') -%>: <%= @item.binding_call_number -%>

<%= t('activerecord.attributes.item.binded_at') -%>: <%= l(@item.binded_at, format: :only_date) if @item.binded_at -%>

<%= t('activerecord.attributes.item.note') -%>: <%= @item.note %>

<%= t('item.accepted_at') -%>: <%= l(@item.accept.created_at) if @item.accept -%>

<%= t('page.created_at') -%>: <%= l(@item.created_at) -%>

<%= t('page.updated_at') -%>: <%= l(@item.updated_at) -%>

<% if policy(@item).update? %> <%= render 'tooltip', item: @item %> <% end %>