Skip to content

Commit

Permalink
add case western to cc translation map
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Jan 21, 2025
1 parent 44fbd99 commit 4de542b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion umich_catalog_indexing/lib/ht_traject/ht_hathifiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def self.get_hf_info(oclc_nums, bib_nums)

query(bib_nums: bib_nums, oclc_nums: oclc_nums).each do |r|
hf_hash[r[:id]] = r
hf_hash[r[:id]]["source"] = CGI.unescapeHTML(CC_TO_OF[r[:collection_code].downcase])
collection_code = CC_TO_OF[r[:collection_code].downcase]
raise StandardError, "HathiTrust collection code not found: #{r[:collection_code]}" if collection_code.nil?
hf_hash[r[:id]]["source"] = CGI.unescapeHTML(collection_code)
end

hf_hash.values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ nnfr: The Frick Collection
nrlf: University of California
nwu: Northwestern University
nyp: New York Public Library
oclw: Case Western Reserve University
oks: Oklahoma State University
osu: The Ohio State University
phc: Haverford College
Expand Down

0 comments on commit 4de542b

Please sign in to comment.