Skip to content

Commit

Permalink
Merge pull request #2493 from pulibrary/i1827-build-items-hash-key
Browse files Browse the repository at this point in the history
[#1827] Use the term "description", rather than "enumeration", for the combined enumeration and chronology
  • Loading branch information
christinach authored Sep 18, 2024
2 parents ffc4f9f + 141235a commit 1f9ce2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion marc_to_solr/lib/process_holdings_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def build_item(field_852:, field_876:)
is_scsb = scsb?(field_852)
item = {}
item[:holding_id] = field_876['0'] if field_876['0']
item[:enumeration] = field_876['3'] if field_876['3']
item[:description] = field_876['3'] if field_876['3']
item[:id] = field_876['a'] if field_876['a']
item[:status_at_load] = field_876['j'] if field_876['j']
item[:barcode] = field_876['p'] if field_876['p']
Expand Down
2 changes: 1 addition & 1 deletion spec/marc_to_solr/lib/princeton_marc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def fixture_record(fixture_name)
expect(@holdings_scsb_block['location_has']).to eq(["no. 107-112"])
end
it "indexes 876 for scsb" do
expect(@holdings_scsb_block['items'][0]['enumeration']).to eq("no. 107-112")
expect(@holdings_scsb_block['items'][0]['description']).to eq("no. 107-112")
expect(@holdings_scsb_block['items'][0]['id']).to eq("15555520")
expect(@holdings_scsb_block['items'][0]['use_statement']).to eq("In Library Use")
expect(@holdings_scsb_block['items'][0]['status_at_load']).to eq("Available")
Expand Down

0 comments on commit 1f9ce2c

Please sign in to comment.