From 8e7e988f76333cfc25f1dd9704447a73cd76c68a Mon Sep 17 00:00:00 2001 From: Sarah Proctor Date: Fri, 20 Sep 2024 11:32:29 -0700 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=92=84=20Removes=20the=20multiple=20i?= =?UTF-8?q?ndicator=20from=20indexing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit improves communication of intent by removing the multiple indicator from the hyku_indexing module. Ref: - https://github.com/scientist-softserv/adventist_knapsack/issues/185 --- app/indexers/concerns/hyku_indexing.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/indexers/concerns/hyku_indexing.rb b/app/indexers/concerns/hyku_indexing.rb index 17073eb6e..74594c6a6 100644 --- a/app/indexers/concerns/hyku_indexing.rb +++ b/app/indexers/concerns/hyku_indexing.rb @@ -23,9 +23,9 @@ module HykuIndexing solr_doc['member_ids_ssim'] = object.member_ids.map(&:id) if object.kind_of?(Valkyrie::Resource) solr_doc['all_text_tsimv'] = extract_full_text(object) # rubocop:enable Style/ClassCheck - solr_doc['title_ssim'] = SortTitle.new(object.title.first).alphabetical + solr_doc['title_ssi'] = SortTitle.new(object.title.first).alphabetical solr_doc['depositor_ssi'] = object.depositor - solr_doc['creator_ssim'] = object.creator&.first + solr_doc['creator_ssi'] = object.creator&.first if object.respond_to?(:date_created) solr_doc[CatalogController.created_field] = Array(object.date_created).first From e014d1f464a462adb31983e74a70e7a2c2f25720 Mon Sep 17 00:00:00 2001 From: Sarah Proctor Date: Fri, 20 Sep 2024 15:11:54 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20Updates=20Solr=20names=20to?= =?UTF-8?q?=20sort=20on=20singular=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit improves communication of intent by removing the multiple indicator from the hyku_indexing module in the catalog_controller. Ref: - https://github.com/scientist-softserv/adventist_knapsack/issues/185 --- app/controllers/catalog_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index 7dc2063be..fce3e9b09 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -12,11 +12,11 @@ class CatalogController < ApplicationController before_action :enforce_show_permissions, only: :show def self.created_field - 'date_created_ssim' + 'date_created_ssi' end def self.creator_field - 'creator_ssim' + 'creator_ssi' end def self.modified_field @@ -24,7 +24,7 @@ def self.modified_field end def self.title_field - 'title_ssim' + 'title_ssi' end def self.uploaded_field