Skip to content

Commit

Permalink
Ensure single value for statement of responsibility matching solr field
Browse files Browse the repository at this point in the history
This fixes an edge case where bib import may bring in multiple values.
  • Loading branch information
cjcolvar authored Jul 31, 2024
1 parent 71b03a4 commit 830a5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/mods_behaviors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def to_solr(solr_doc = Hash.new, opts = {})
solr_doc['other_identifier_sim'] = gather_terms(self.find_by_terms(:other_identifier))
solr_doc['bibliographic_id_ssi'] = self.bibliographic_id.first
solr_doc['bibliographic_id_source_ssi'] = self.bibliographic_id.source.first
solr_doc['statement_of_responsibility_ssi'] = gather_terms(self.find_by_terms(:statement_of_responsibility))
solr_doc['statement_of_responsibility_ssi'] = gather_terms(self.find_by_terms(:statement_of_responsibility)).first
solr_doc['record_identifier_ssim'] = gather_terms(self.find_by_terms(:record_identifier))

# Extract 4-digit year for creation date facet in Hydra and pub_date facet in Blacklight
Expand Down

0 comments on commit 830a5dd

Please sign in to comment.