<commit_before><% if manifestation.items.exists? %>
<div id="holding">
<table class="holding">
  <tr>
    <th><%= t('activerecord.models.library') %></th>
    <th><%= t('activerecord.models.shelf') %></th>
    <th><%= t('activerecord.attributes.item.call_number') %></th>
    <th><%= t('activerecord.attributes.item.item_identifier') %></th>
    <% unless manifestation.article? %>
      <th><%= t('activerecord.models.circulation_status') %></th>
    <% end %>
    <% if SystemConfiguration.get('manifestation.manage_item_rank') %>
      <% if user_signed_in? and current_user.has_role?('Librarian') and params[:all_manifestations] %>
        <th><%= t('activerecord.attributes.item.rank') %></th>
      <% end %>
    <% end %>
  </tr>
  <%# cache(:controller => :manifestations, :action => :show, :id => manifestation.id, :page => 'holding', :role => current_user_role_name, :locale => @locale, :manifestation_id => nil) do %>
  <%# - manifestation.items.on_shelf.each do |item| -%>
    <% items = manifestation.items = SystemConfiguration.get('manifestation.manage_item_rank') ? manifestation.items.sort_rank : manifestation.items %>
    <% items.each do |item| %>
      <% next if hide_item?(params[:all_manifestations], item) %>
      <tr>
        <td>
          <%= link_to item.shelf.library.display_name.localize, item.shelf.library if item.try(:shelf).try(:library) %>
        </td>
        <td>
          <%= link_to item.shelf.display_name.localize, item.shelf if item.shelf %>
          <%= render 'items/shelf_picture', :item => item if item.shelf %>
        </td>
        <td>
          <%= call_numberformat(item) %>
        </td>
        <td>
          <% if item.item_identifier? %>
            <%= link_to item.item_identifier, item %>
          <% else %>
            (<%= link_to t('item.no_number'), item %>)
          <% end %>
        </td>
        <% unless manifestation.article? %>
          <td>
            <% if item.circulation_status.name != 'Available On Shelf' %>
              <span class="not_rent_item"><%= item.circulation_status.display_name.localize if item.circulation_status %></span>
            <% else %>
              <%= item.circulation_status.display_name.localize if item.circulation_status %>
            <% end %>
            <% if item.rent? %>
              (
                <%= t('activerecord.attributes.checkout.due_date') %>:
                <%= l(item.checkouts.first.due_date, :format => :only_date) %>
              )
            <% end %>
          </td>
        <% end %>
        <% if SystemConfiguration.get('manifestation.manage_item_rank') %>
          <% if user_signed_in? and current_user.has_role?('Librarian') and params[:all_manifestations] %>
            <td><%= i18n_rank(item.rank) %></td>
          <% end %>
        <% end %>
      </tr>
    <% end %>
  <%# end %>
</table>
</div>
<% end %><commit_msg>refs5420 資料の検索結果画面の所蔵の正本区分表示の修正<commit_after><% if manifestation.items.exists? %>
<div id="holding">
<table class="holding">
  <tr>
    <th><%= t('activerecord.models.library') %></th>
    <th><%= t('activerecord.models.shelf') %></th>
    <th><%= t('activerecord.attributes.item.call_number') %></th>
    <th><%= t('activerecord.attributes.item.item_identifier') %></th>
    <% unless manifestation.article? %>
      <th><%= t('activerecord.models.circulation_status') %></th>
    <% end %>
    <% if SystemConfiguration.get('manifestation.manage_item_rank') %>
      <% if user_signed_in? and current_user.has_role?('Librarian') %>
        <th><%= t('activerecord.attributes.item.rank') %></th>
      <% end %>
    <% end %>
  </tr>
  <%# cache(:controller => :manifestations, :action => :show, :id => manifestation.id, :page => 'holding', :role => current_user_role_name, :locale => @locale, :manifestation_id => nil) do %>
  <%# - manifestation.items.on_shelf.each do |item| -%>
    <% items = manifestation.items = SystemConfiguration.get('manifestation.manage_item_rank') ? manifestation.items.sort_rank : manifestation.items %>
    <% items.each do |item| %>
      <% next if hide_item?(params[:all_manifestations], item) %>
      <tr>
        <td>
          <%= link_to item.shelf.library.display_name.localize, item.shelf.library if item.try(:shelf).try(:library) %>
        </td>
        <td>
          <%= link_to item.shelf.display_name.localize, item.shelf if item.shelf %>
          <%= render 'items/shelf_picture', :item => item if item.shelf %>
        </td>
        <td>
          <%= call_numberformat(item) %>
        </td>
        <td>
          <% if item.item_identifier? %>
            <%= link_to item.item_identifier, item %>
          <% else %>
            (<%= link_to t('item.no_number'), item %>)
          <% end %>
        </td>
        <% unless manifestation.article? %>
          <td>
            <% if item.circulation_status.name != 'Available On Shelf' %>
              <span class="not_rent_item"><%= item.circulation_status.display_name.localize if item.circulation_status %></span>
            <% else %>
              <%= item.circulation_status.display_name.localize if item.circulation_status %>
            <% end %>
            <% if item.rent? %>
              (
                <%= t('activerecord.attributes.checkout.due_date') %>:
                <%= l(item.checkouts.first.due_date, :format => :only_date) %>
              )
            <% end %>
          </td>
        <% end %>
        <% if SystemConfiguration.get('manifestation.manage_item_rank') %>
          <% if user_signed_in? and current_user.has_role?('Librarian') %>
            <td><%= i18n_rank(item.rank) %></td>
          <% end %>
        <% end %>
      </tr>
    <% end %>
  <%# end %>
</table>
</div>
<% end %>
{'fraction_non_alphanumeric': 0.18340917045852292, 'fraction_numerical': 0.001400070003500175, 'mean_word_length': 2.4762773722627736, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 181, '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': '4259490', 'n_tokens_mistral': 2056, 'n_tokens_neox': 1793, 'n_words': 303}