Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 Removes the multiple indicator from Solr suffix #2341

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ 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
'system_modified_dtsi'
end

def self.title_field
'title_ssim'
'title_ssi'
end

def self.uploaded_field
Expand Down
4 changes: 2 additions & 2 deletions app/indexers/concerns/hyku_indexing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading