From f653f68876529b8817244a478a210672f0b92742 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 19 Apr 2021 20:53:27 +0200 Subject: [PATCH] fix aggregations --- app/controllers/events_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index d3832be7d..9c72c0f4e 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -183,11 +183,11 @@ def index end occurred = if total.positive? - facet_by_source(response.response.aggregations.occurred.buckets) + facet_by_year(response.response.aggregations.occurred.buckets) end prefixes = if total.positive? - facet_by_source(response.response.aggregations.prefixes.buckets) + facet_by_key(response.response.aggregations.prefixes.buckets) end citation_types = if total.positive?