Skip to content

Commit

Permalink
Merge pull request #893 from scientist-softserv/rework-creator-sort
Browse files Browse the repository at this point in the history
 🐛 Fix misspelling on depositor
  • Loading branch information
laritakr authored Oct 31, 2023
2 parents d1805bf + f8b1109 commit 609b145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/indexers/app_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AppIndexer < Hyrax::WorkIndexer
def generate_solr_document
super.tap do |solr_doc|
solr_doc['title_ssi'] = SortTitle.new(object.title.first).alphabetical
solr_doc['depositer_ssi'] = object.depositor
solr_doc['depositor_ssi'] = object.depositor
solr_doc['creator_ssi'] = object.creator&.first
solr_doc['bulkrax_identifier_tesim'] = object.bulkrax_identifier
solr_doc['account_cname_tesim'] = Site.instance&.account&.cname
Expand Down
2 changes: 1 addition & 1 deletion app/indexers/collection_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def generate_solr_document
super.tap do |solr_doc|
solr_doc['bulkrax_identifier_tesim'] = object.bulkrax_identifier
solr_doc['title_ssi'] = SortTitle.new(object.title.first).alphabetical
solr_doc['depositer_ssi'] = object.depositor
solr_doc['depositor_ssi'] = object.depositor
solr_doc['creator_ssi'] = object.creator&.first
solr_doc["account_cname_tesim"] = Site.instance&.account&.cname
end
Expand Down

0 comments on commit 609b145

Please sign in to comment.