<% @search_data.months(year).each_with_index do |month, index| %>
- <%= link_to_unless(request.params.dig(:filter, "month")&.include?(month['val'].to_date.strftime("%Y-%-m")), "#{month['val'].to_date.strftime("%B")} #{year} (#{month['count']})", url_for(replace_filter_url(request.params, "month", year + "-#{index + 1}")), class: "menu-link modifiable-link") %>
+ <%= link_to_unless(request.params.dig(:filter, "month")&.include?(month['val'].to_date.strftime("%Y-%-m")), "#{month['val'].to_date.strftime("%B")} #{year} (#{number_to_delimited(month['count'], separator: ",")})", url_for(replace_filter_url(request.params, "month", year + "-#{index + 1}")), class: "menu-link modifiable-link") %>
<% end %>
@@ -25,7 +25,7 @@
<% @search_data.months(year).each_with_index do |month, index| %>
- <%= link_to_unless(request.params.dig(:filter, "month")&.include?(month['val'].to_date.strftime("%Y-%-m")), "#{month['val'].to_date.strftime("%B")} #{year} (#{month['count']})", url_for(replace_filter_url(request.params, "month", year + "-#{index + 1}")), class: "menu-link modifiable-link") %>
+ <%= link_to_unless(request.params.dig(:filter, "month")&.include?(month['val'].to_date.strftime("%Y-%-m")), "#{month['val'].to_date.strftime("%B")} #{year} (#{number_to_delimited(month['count'], separator: ",")})", url_for(replace_filter_url(request.params, "month", year + "-#{index + 1}")), class: "menu-link modifiable-link") %>
<% end %>
@@ -42,7 +42,7 @@
<% @search_data.years[0..4].each do |year_data| %>
- <%= link_to("#{year_data["val"].to_date.year} (#{year_data["count"]})", url_for(apply_filter_url(request.params, "year", year_data["val"].to_date.year)), class: "menu-link modifiable-link") %>
+ <%= link_to("#{year_data["val"].to_date.year} (#{number_to_delimited(year_data['count'], separator: ",")})", url_for(apply_filter_url(request.params, "year", year_data["val"].to_date.year)), class: "menu-link modifiable-link") %>
<% end %>
<% unless @search_data.years[5..].blank? %>
@@ -50,7 +50,7 @@
More
<% @search_data.years[5..].each do |year_data| %>
- <%= link_to("#{year_data["val"].to_date.year} (#{year_data["count"]})", url_for(apply_filter_url(request.params, "year", year_data["val"].to_date.year)), class: "menu-link modifiable-link") %>
+ <%= link_to("#{year_data["val"].to_date.year} (#{number_to_delimited(year_data['count'], separator: ",")})", url_for(apply_filter_url(request.params, "year", year_data["val"].to_date.year)), class: "menu-link modifiable-link") %>
<% end %>
diff --git a/app/views/search/results/facets/_session_facet.html.erb b/app/views/search/results/facets/_session_facet.html.erb
index af8a2d6..b426e26 100644
--- a/app/views/search/results/facets/_session_facet.html.erb
+++ b/app/views/search/results/facets/_session_facet.html.erb
@@ -6,7 +6,7 @@
<% SolrSearch.sessions[0..4].each do |session| %>
- <%= link_to_unless(request.params.dig(:filter, "session")&.include?(session), "#{session} (#{facet_data.dig("session_#{session}", "count")})", url_for(apply_filter_url(request.params, "session", session)), class: "menu-link modifiable-link") %>
+ <%= link_to_unless(request.params.dig(:filter, "session")&.include?(session), "#{session} (#{number_to_delimited(facet_data.dig("session_#{session}", "count"), separator: ",")})", url_for(apply_filter_url(request.params, "session", session)), class: "menu-link modifiable-link") %>
<% end %>
@@ -15,7 +15,7 @@
More
<% SolrSearch.sessions[5..].each do |session| %>
- <%= link_to_unless(request.params.dig(:filter, "session")&.include?(session), "#{session} (#{facet_data.dig("session_#{session}", "count")})", url_for(apply_filter_url(request.params, "session", session)), class: "menu-link modifiable-link") %>
+ <%= link_to_unless(request.params.dig(:filter, "session")&.include?(session), "#{session} (#{number_to_delimited(facet_data.dig("session_#{session}", "count"), separator: ",")})", url_for(apply_filter_url(request.params, "session", session)), class: "menu-link modifiable-link") %>
<% end %>