<commit_before><div style="color: red"><%= flash[:message].to_s -%></div>

<%- remote_form_for @checked_item, :html => {:method => :post}, :update => :checked_item_list, :url => user_basket_checked_items_path(@basket.user.login, @basket, :mode => 'list') do |f| -%>
  <%= f.error_messages -%>
  <p>
    <%= t('activerecord.attributes.item.item_identifier') -%>: <%= f.text_field :item_identifier -%>
    <%= t('checked_item.ignore_restriction') -%>: <%= f.check_box :ignore_restriction -%>
    <%= submit_tag t('page.read') -%>
  </p>
<%- end -%>
<%= javascript_tag("$('checked_item_item_identifier').focus()") -%>
<table class="index">
  <tr>
    <th class="checked_item_title"><%= t('page.title') -%></th>
    <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
    <th><%= t('activerecord.attributes.checkout.due_date') -%></th>
    <th></th>
  </tr>

<%- @checked_items.each_with_index do |checked_item, i| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%= link_to h(checked_item.item.manifestation), checked_item.item.manifestation -%>
    </td>
    <td><%= link_to h(checked_item.item.item_identifier), checked_item.item -%></td>
    <td><%=h l(checked_item.due_date, :format => :only_date) -%></td>
    <td><%= link_to t('page.destroy'), user_basket_checked_item_path(checked_item.basket.user.login, checked_item.basket, checked_item), :confirm => t('page.are_you_sure'), :method => :delete -%></td>
  </tr>
<%- end -%>
</table>

<%- form_for(:basket, :url => {:controller => 'baskets', :action => 'update', :id => @basket.id}, :html => { :method => :put }) do |f| -%>
  <div>
    <%= f.submit t('checked_item.checkout') -%>
  </div>
<%- end -%><commit_msg>Manifestation title is not displayed correctly<commit_after><div style="color: red"><%= flash[:message].to_s -%></div>

<%- remote_form_for @checked_item, :html => {:method => :post}, :update => :checked_item_list, :url => user_basket_checked_items_path(@basket.user.login, @basket, :mode => 'list') do |f| -%>
  <%= f.error_messages -%>
  <p>
    <%= t('activerecord.attributes.item.item_identifier') -%>: <%= f.text_field :item_identifier -%>
    <%= t('checked_item.ignore_restriction') -%>: <%= f.check_box :ignore_restriction -%>
    <%= submit_tag t('page.read') -%>
  </p>
<%- end -%>
<%= javascript_tag("$('checked_item_item_identifier').focus()") -%>
<table class="index">
  <tr>
    <th class="checked_item_title"><%= t('page.title') -%></th>
    <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
    <th><%= t('activerecord.attributes.checkout.due_date') -%></th>
    <th></th>
  </tr>

<%- @checked_items.each_with_index do |checked_item, i| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%= link_to h(checked_item.item.manifestation.original_title), checked_item.item.manifestation -%>
    </td>
    <td><%= link_to h(checked_item.item.item_identifier), checked_item.item -%></td>
    <td><%=h l(checked_item.due_date, :format => :only_date) -%></td>
    <td><%= link_to t('page.destroy'), user_basket_checked_item_path(checked_item.basket.user.login, checked_item.basket, checked_item), :confirm => t('page.are_you_sure'), :method => :delete -%></td>
  </tr>
<%- end -%>
</table>

<%- form_for(:basket, :url => {:controller => 'baskets', :action => 'update', :id => @basket.id}, :html => { :method => :put }) do |f| -%>
  <div>
    <%= f.submit t('checked_item.checkout') -%>
  </div>
<%- end -%>
{'fraction_non_alphanumeric': 0.24636416521233276, 'fraction_numerical': 0.0011634671320535194, 'mean_word_length': 4.537842190016103, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 133, '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': '5816003', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1312, 'n_words': 209}