diff --git a/app/controllers/old_events_controller.rb b/app/controllers/old_events_controller.rb index 387d41ea9..4e565be96 100644 --- a/app/controllers/old_events_controller.rb +++ b/app/controllers/old_events_controller.rb @@ -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( @@ -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,