<commit_before><% # --- SUMMARY --- %>

<!-- <div class=""> -->

  <div class="<%= location_narrow_group_class %>">

    <div class="row expandable-content">

      <% item_data['holdings'].each do |h|  %>

      <% next unless display_holdings_summary?(h) %>

        <% # --- HOLDING CALL NUMBER --- %>

        <% if h.fetch('call_no', '').present? %>

          <div class="<%= call_number_wrapper_class %>">
            <dl>
              <dt><span class='call-number-badge badge badge-info'><%= t('trln_argon.show.badge.call_number') %></span></dt>
              <dd><span class='call-number'><%= h['call_no'] %></span></dd>
            </dl>
          </div>

        <% end %>

        <% # --- HOLDING SUMMARY --- %>

        <% if h.fetch('summary', '').present? %>

          <div class="<%= holdings_summary_wrapper_class %>">
            <dl class="row no-gutters" id="item-summary-<%= loc_b %>-<%= loc_n %>-<%= document.id %>">
              <dt><span class='summary-badge badge badge-info'><%= t('trln_argon.show.badge.summary') %></span></dt>
              <dd>

                <div class="summary-text-wrapper">
                    <span class="summary-text"><%= h['summary'].gsub(' ', '&nbsp;').html_safe %></span>
                </div>

              </dd>
            </dl>
          </div>

        <% end %>

        <% # --- LATEST RECEIVED --- %>

        <% if h.fetch('holdings_id', '').present? %>
          <%= render partial: 'catalog/index_items_latest_received', locals: { document: @document, item_data: h } %>
        <% end %>

        <% # --- HOLDING NOTES --- %>

        <% if h.fetch('notes', []).any? %>

          <div class="<%= holdings_note_class %>">

            <dl>
              <dt><span class='holding-note-badge badge badge-info'><%= t('trln_argon.show.badge.holding_note') %></span></dt>
              <dd><%= [*h['notes']].join("; "); %></dd>
            </dl>

          </div>

        <% end %>

      <% end %><commit_msg>adds ID to parent div to fix JS error, fixes non-breaking space issue, resolves TD-1220 and TD-1221<commit_after><% # --- SUMMARY --- %>

<!-- <div class=""> -->

  <div class="<%= location_narrow_group_class %>" id="item-summary-<%= loc_b %>-<%= loc_n %>-<%= document.id %>">

    <div class="row expandable-content">

      <% item_data['holdings'].each do |h|  %>

      <% next unless display_holdings_summary?(h) %>

        <% # --- HOLDING CALL NUMBER --- %>

        <% if h.fetch('call_no', '').present? %>

          <div class="<%= call_number_wrapper_class %>">
            <dl>
              <dt><span class='call-number-badge badge badge-info'><%= t('trln_argon.show.badge.call_number') %></span></dt>
              <dd><span class='call-number'><%= h['call_no'] %></span></dd>
            </dl>
          </div>

        <% end %>

        <% # --- HOLDING SUMMARY --- %>

        <% if h.fetch('summary', '').present? %>

          <div class="<%= holdings_summary_wrapper_class %>">
            <dl class="row no-gutters" id="item-summary-<%= loc_b %>-<%= loc_n %>-<%= document.id %>">
              <dt><span class='summary-badge badge badge-info'><%= t('trln_argon.show.badge.summary') %></span></dt>
              <dd>

                <div class="summary-text-wrapper">
                    <span class="summary-text"><%= h['summary'].html_safe %></span>
                </div>

              </dd>
            </dl>
          </div>

        <% end %>

        <% # --- LATEST RECEIVED --- %>

        <% if h.fetch('holdings_id', '').present? %>
          <%= render partial: 'catalog/index_items_latest_received', locals: { document: @document, item_data: h } %>
        <% end %>

        <% # --- HOLDING NOTES --- %>

        <% if h.fetch('notes', []).any? %>

          <div class="<%= holdings_note_class %>">

            <dl>
              <dt><span class='holding-note-badge badge badge-info'><%= t('trln_argon.show.badge.holding_note') %></span></dt>
              <dd><%= [*h['notes']].join("; "); %></dd>
            </dl>

          </div>

        <% end %>

      <% end %>
{'fraction_non_alphanumeric': 0.2252626435377474, 'fraction_numerical': 0.0019545565599804545, 'mean_word_length': 1.8689558514365803, 'pattern_counts': {'":': 0, '<': 146, '<?xml version=': 0, '>': 146, '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': '2134312', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1278, 'n_words': 237}