From a5120ee91c5a561637b22908c1ba237cf332f499 Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Thu, 29 Aug 2024 13:31:54 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20solr=20fields=20for=20face?= =?UTF-8?q?ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit will adjust the solr field to what they are indexed to in this application's ead2_config. Originally, the fields were brought in from NGAO and it didn't match up exactly. Ex. `repository_sim` vs `repository_ssim`. --- app/controllers/catalog_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index 383fad6..d9e1cba 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -145,15 +145,15 @@ class CatalogController < ApplicationController # :index_range can be an array or range of prefixes that will be used to create the navigation # (note: It is case sensitive when searching values) - config.add_facet_field 'campus_unit_sim', label: 'Campus', helper_method: :render_campus_facet - config.add_facet_field 'repository_sim', label: 'Repository', limit: 10 - config.add_facet_field 'collection_sim', label: 'Collection', limit: 10 - config.add_facet_field 'level_sim', label: 'Level', limit: 10 + config.add_facet_field 'campus_unit_ssim', label: 'Campus', helper_method: :render_campus_facet + config.add_facet_field 'repository_ssim', label: 'Repository', limit: 10 + config.add_facet_field 'collection_ssim', label: 'Collection', limit: 10 + config.add_facet_field 'level_ssim', label: 'Level', limit: 10 config.add_facet_field 'creator_ssim', label: 'Creator', limit: 10 config.add_facet_field 'creators_ssim', label: 'Creator', show: false config.add_facet_field 'component_level_isim', show: false config.add_facet_field 'names_ssim', label: 'Names', limit: 10 - config.add_facet_field 'geogname_sim', label: 'Place', limit: 10 + config.add_facet_field 'geogname_ssim', label: 'Place', limit: 10 config.add_facet_field 'places_ssim', label: 'Places', show: false config.add_facet_field 'access_subjects_ssim', label: 'Subject', limit: 10 config.add_facet_field 'parent_ssim', show: false