Skip to content

Commit

Permalink
show events per year
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 20, 2021
1 parent 8cab8d7 commit be58107
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/old_events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ def index
if total > 0
facet_by_source(response.aggregations.prefixes.buckets)
end
occurred =
if total > 0
facet_by_year(response.aggregations.occurred.buckets)
end
citation_types =
if total > 0
facet_by_citation_type_v1(
Expand All @@ -199,6 +203,7 @@ def index
page:
page[:cursor].nil? && page[:number].present? ? page[:number] : nil,
sources: sources,
occurred: occurred,
prefixes: prefixes,
"citation-types" => citation_types,
"relation-types" => relation_types,
Expand Down

0 comments on commit be58107

Please sign in to comment.