<commit_before><div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.item')) -%></h1>
<div id="content_list">
<div style="color: red"><%= raw flash[:message] -%></div>
<p id="notice"><%= raw notice %></p>

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

<p>
  <strong><%= t('activerecord.models.shelf') -%>:</strong>
  <%= link_to @item.shelf_display_name.localize, @item.shelf -%>
  <%= render 'items/shelf_picture', :item => @item -%>
  (<%= link_to @item.shelf.library.display_name.localize, @item.shelf.library -%>)
</p>

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

<p>
  <strong><%= t('activerecord.models.lending_policy') -%>:</strong>
  <ul>
    <%- @item.lending_policies.each do |lending_policy| -%>
      <li><%= link_to lending_policy.user_group.display_name.localize, lending_policy -%></li>
    <%- end -%>
  </ul>
</p>

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

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

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

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

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

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

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

<p>
  <strong><%= t('activerecord.models.use_restriction') -%>:</strong>
  <% if @item.use_restriction %>
    <ul>
      <li><%= @item.use_restriction.display_name.localize %></li>
    </ul>
  <% end %>
</p>

<%- cache(:controller => :items, :action => :show, :id => @item.id, :page => 'detail', :role => current_user_role_name, :locale => @locale, :item_id => nil) do -%>
<!--
<%- if can? :update, @item -%>
  <p>
    <strong><%= t('item.donor') -%>:</strong>
    <%- @item.donors.each do |patron| -%>
      <%= link_to patron.full_name, patron -%>
    <%- end -%>
  </p>
<%- end -%>
-->

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

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

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

<p>
  <strong><%= t('page.updated_at') -%>:</strong>
  <%= l(@item.updated_at) -%>
</p>
<%- end -%>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <%= render 'manifestations/book_jacket', :manifestation => @item.manifestation -%>
  <ul>
    <%- if @shelf -%>
      <li><%= link_to t('page.edit'), edit_library_shelf_item_path(@shelf.library, @shelf, @item) -%></li>
    <%- else -%>
      <li><%= link_to t('page.edit'), edit_item_path(@item) -%></li>
    <%- end -%>
    <li><%= link_to t('page.listing', :model => t('activerecord.models.inter_library_loan')), item_inter_library_loans_path(@item) -%></li>
    <li><%= link_to t('page.back'), items_path -%></li>
    <% if can? :destroy, @item %>
      <li><%= link_to t('page.destroy'), @item, :confirm => t('page.are_you_sure'), :method => :delete -%></li>
    <% end %>
    <%- if @item.inter_library_loans.empty? -%>
      <li><%= link_to t('item.add_new_copy'), new_manifestation_item_path(@item.manifestation) -%></li>
    <%- end -%>
    <li><%= link_to t('page.listing', :model => t('activerecord.models.lending_policy')), item_lending_policies_path(@item) -%></li>
  </ul>
</div><commit_msg>refs2554 modified items<commit_after><div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.item')) -%></h1>
<div id="content_list">
<div style="color: red"><%= raw flash[:message] -%></div>
<p id="notice"><%= raw notice %></p>

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

<p>
  <strong><%= t('activerecord.models.shelf') -%>:</strong>
  <%= link_to @item.shelf_display_name.localize, @item.shelf -%>
  <%= render 'items/shelf_picture', :item => @item -%>
  (<%= link_to @item.shelf.library.display_name.localize, @item.shelf.library -%>)
</p>

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

<p>
  <strong><%= t('activerecord.models.lending_policy') -%>:</strong>
  <ul>
    <%- @item.lending_policies.each do |lending_policy| -%>
      <li><%= link_to lending_policy.user_group.display_name.localize, lending_policy -%></li>
    <%- end -%>
  </ul>
</p>

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

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

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

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

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

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

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

<p>
  <strong><%= t('activerecord.models.use_restriction') -%>:</strong>
  <% if @item.use_restriction %>
    <ul>
      <li><%= @item.use_restriction.display_name.localize %></li>
    </ul>
  <% end %>
</p>

<%- cache(:controller => :items, :action => :show, :id => @item.id, :page => 'detail', :role => current_user_role_name, :locale => @locale, :item_id => nil) do -%>
<!--
<%- if can? :update, @item -%>
  <p>
    <strong><%= t('item.donor') -%>:</strong>
    <%- @item.donors.each do |patron| -%>
      <%= link_to patron.full_name, patron -%>
    <%- end -%>
  </p>
<%- end -%>
-->

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

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

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

<p>
  <strong><%= t('page.updated_at') -%>:</strong>
  <%= l(@item.updated_at) -%>
</p>
<%- end -%>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <%= render 'manifestations/book_jacket', :manifestation => @item.manifestation -%>
  <ul>
    <%- if @shelf -%>
      <li><%= link_to t('page.edit'), edit_library_shelf_item_path(@shelf.library, @shelf, @item) -%></li>
    <%- else -%>
      <li><%= link_to t('page.edit'), edit_item_path(@item) -%></li>
    <%- end -%>
    <li><%= link_to t('page.listing', :model => t('activerecord.models.inter_library_loan')), item_inter_library_loans_path(@item) -%></li>
    <li><%= link_to t('page.back'), items_path -%></li>
    <% if can? :destroy, @item %>
      <li><%= link_to t('page.destroy'), @item, :confirm => t('page.are_you_sure'), :method => :delete -%></li>
    <% end %>
    <%- if @item.inter_library_loans.empty? -%>
      <%- if user_signed_in? and current_user.has_role?('Librarian') -%>
        <li><%= link_to t('item.add_new_copy'), new_manifestation_item_path(@item.manifestation) -%></li>
      <%- end -%>
    <%- end -%>
    <li><%= link_to t('page.listing', :model => t('activerecord.models.lending_policy')), item_lending_policies_path(@item) -%></li>
  </ul>
</div>
{'fraction_non_alphanumeric': 0.25941751939727875, 'fraction_numerical': 0.0008995839424266276, 'mean_word_length': 3.971492453884852, 'pattern_counts': {'":': 0, '<': 351, '<?xml version=': 0, '>': 383, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6788503', 'n_tokens_mistral': 3867, 'n_tokens_neox': 3565, 'n_words': 542}