<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 -%>

<%- if @item.bookbinder_id -%>
  <p>
    <strong><%= t('bookbinding.binded') %>:</strong>
    <%= link_to @item.try(:binder_item).try(:manifestation).try(:original_title), manifestation_path(@item.try(:binder_item).try(:manifestation)) %>
    (<%= link_to @item.binder_item.item_identifier || t('activerecord.attributes.item.item_identifier'), item_path(@item.binder_item) %>)
  </p>
<%- elsif @item.bookbinder -%>
  <p>
    <strong><%= t('bookbinding.binder') %>: </strong>
    <%= link_to t('bookbinding.binding_items'), {:controller => 'manifestations', :action => 'index', :bookbinder_id => @item.manifestation.id} %>
  </p>
<%- 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.retention_period') -%>:</strong>
  <%= link_to @item.retention_period.display_name.localize, @item.retention_period if @item.retention_period -%>
</p>

<% if @item.remove_reason %>
  <p>
    <strong><%= t('activerecord.models.remove_reason') %>:</strong>
    <%= link_to @item.remove_reason.display_name.localize, @item.remove_reason %>
  </p>
  <p>
    <strong><%= t('activerecord.attributes.item.removed_at') %>:</strong>
    <%= l(@item.removed_at) %>
  </p>
<% end %>

<p>
  <strong><%= t('activerecord.attributes.item.call_number') %>:</strong>
  <%= call_numberformat(@item) %>
</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>

<% if user_signed_in? and current_user.has_role?('Librarian') %>
  <p>
    <strong><%= t('activerecord.attributes.item.non_searchable') %>:</strong>
    <%= localized_boolean(@item.non_searchable) %>
  </p>
<% end %>

<%- cache(:controller => :items, :action => :show, :id => @item.id, :page => 'detail', :role => current_user_role_name, :locale => @locale, :item_id => nil) do %>

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

<p><commit_msg>refs 4716 hide url of article item on opac server<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 -%>

<%- if @item.bookbinder_id -%>
  <p>
    <strong><%= t('bookbinding.binded') %>:</strong>
    <%= link_to @item.try(:binder_item).try(:manifestation).try(:original_title), manifestation_path(@item.try(:binder_item).try(:manifestation)) %>
    (<%= link_to @item.binder_item.item_identifier || t('activerecord.attributes.item.item_identifier'), item_path(@item.binder_item) %>)
  </p>
<%- elsif @item.bookbinder -%>
  <p>
    <strong><%= t('bookbinding.binder') %>: </strong>
    <%= link_to t('bookbinding.binding_items'), {:controller => 'manifestations', :action => 'index', :bookbinder_id => @item.manifestation.id} %>
  </p>
<%- 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.retention_period') -%>:</strong>
  <%= link_to @item.retention_period.display_name.localize, @item.retention_period if @item.retention_period -%>
</p>

<% if @item.remove_reason %>
  <p>
    <strong><%= t('activerecord.models.remove_reason') %>:</strong>
    <%= link_to @item.remove_reason.display_name.localize, @item.remove_reason %>
  </p>
  <p>
    <strong><%= t('activerecord.attributes.item.removed_at') %>:</strong>
    <%= l(@item.removed_at) %>
  </p>
<% end %>

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

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

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

<%- if SystemConfiguration.get('internal_server') %>
  <p>
    <strong><%= t('activerecord.attributes.item.url') %>:</strong>
    <%= @item.url %>
  </p>
<%- end -%>

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

<% if user_signed_in? and current_user.has_role?('Librarian') %>
  <p>
    <strong><%= t('activerecord.attributes.item.non_searchable') %>:</strong>
    <%= localized_boolean(@item.non_searchable) %>
  </p>
<% end %>

<%- cache(:controller => :items, :action => :show, :id => @item.id, :page => 'detail', :role => current_user_role_name, :locale => @locale, :item_id => nil) do %>

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

<p>
{'fraction_non_alphanumeric': 0.24256521016780197, 'fraction_numerical': 0.0013291244392756273, 'mean_word_length': 4.90775269872424, 'pattern_counts': {'":': 0, '<': 213, '<?xml version=': 0, '>': 241, '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': '2217997', 'n_tokens_mistral': 2487, 'n_tokens_neox': 2241, 'n_words': 347}