diff --git a/app/controllers/concerns/facetable.rb b/app/controllers/concerns/facetable.rb index b3caa04ed..2190d0d2f 100644 --- a/app/controllers/concerns/facetable.rb +++ b/app/controllers/concerns/facetable.rb @@ -85,9 +85,7 @@ def facet_by_schema(arr) def facet_by_region(arr) arr.map do |hsh| - hsh["key"] = hsh["key"].downcase - - { "id" => hsh["key"], + { "id" => hsh["key"].downcase, "title" => REGIONS[hsh["key"]] || hsh["key"], "count" => hsh["doc_count"] } end