Skip to content

Commit

Permalink
fix: NOP-29 Add comma to number of results on search results page (#1162
Browse files Browse the repository at this point in the history
)

Co-authored-by: Andy Wallace <[email protected]>
  • Loading branch information
kethlinmil and sourcefilter authored Oct 2, 2024
1 parent 59232f2 commit aa98926
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/views/catalog/_browse_results.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<% else %>
<div class='search-count-wrapper'>
<h2 class='search-count__heading'>
<span class="search-count__results-found"><%= @response['response'].dig(:numFound) %></span> <span class="search-count__catalog-results">Catalog Results</span>
<span class="search-count__results-found"><%= number_with_delimiter @response['response'].dig(:numFound) %></span>
<span class="search-count__catalog-results">Catalog Results</span>
</h2>
<%= render_results_collection_tools wrapping_class: "search-widgets search-widgets-wrapper search-widgets-wrapper--sinai" %>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1 class='banner__title--collection'><%= document[:title_tesim][0] %></h1>
<div class='banner__collection-detail'>
<% if collection_count %>
<div class='banner__collection-count' itemprop="collectionSize"><%= collection_count %> items</div>
<div class='banner__collection-count' itemprop="collectionSize"><%= number_with_delimiter collection_count %> items</div>
<% end %>
<%= link_to 'Browse items in this collection', "/catalog?f%5Bmember_of_collections_ssim%5D%5B%5D=#{CGI.escape(document[:title_tesim][0])}", class: 'btn-base btn-outline-ursus--gold ur-link--gold banner__overlay-btn-text' %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views_legacy/catalog/_paginate_compact.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
<%= render :partial => "paginate_compact", :object => @response-%>

<h4><b><%= @response['response'].dig(:numFound) %></b> Catalog Results</h4>
<h4><b><%= number_with_delimiter @response['response'].dig(:numFound) %></b> Catalog Results</h4>
<%= paginate paginate_compact, :page_entries_info => page_entries_info(paginate_compact), :theme => :blacklight_compact %>

0 comments on commit aa98926

Please sign in to comment.