Skip to content

Commit

Permalink
Update field to be both stored and indexed in solr
Browse files Browse the repository at this point in the history
  • Loading branch information
sensei100 committed Nov 5, 2021
1 parent 92247c9 commit 8ff4d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cob_index/indexer_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
to_field "hathi_trust_bib_key_display", lookup_hathi_bib_key

# Donor Info fields
to_field "donor_info_display", extract_donor
to_field "donor_info_ms", extract_donor

# Availability
to_field "availability_facet", extract_availability
Expand Down
4 changes: 2 additions & 2 deletions spec/cob_index/macros/custom_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,7 @@

before do
subject.instance_eval do
to_field "donor_info_display", extract_donor
to_field "donor_info_ms", extract_donor
settings do
provide "marc_source.type", "xml"
end
Expand All @@ -2462,7 +2462,7 @@

context "when 541 field has indicator1=1 AND subfield c is Gift" do
it "maps record" do
expect(subject.map_record(records[1])).to eq("donor_info_display" => ["Donor name"])
expect(subject.map_record(records[1])).to eq("donor_info_ms" => ["Donor name"])
end
end

Expand Down

0 comments on commit 8ff4d6f

Please sign in to comment.