Skip to content

Commit

Permalink
Amend Alma DE-836 OCLC number construction. (ea83a1f)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Jun 2, 2023
1 parent 3902ffb commit 9e4f700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/resources/transformation/alma.fix
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ do list(path: "035 .a", "var": "$i")
elsif any_match("$i", "\\(DE-836\\).*")
unless exists("@sysid")
copy_field("$i", "@sysid")
replace_all("@sysid", "^\\(DE-836\\)(\\d{7})-49hbz_fhm$", "(DE-836)ocm0$1")
replace_all("@sysid", "^\\(DE-836\\)(\\d{8})-49hbz_fhm$", "(DE-836)ocm$1")
replace_all("@sysid", "^\\(DE-836\\)(\\d{9})-49hbz_fhm$", "(DE-836)ocn$1")
replace_all("@sysid", "^\\(DE-836\\)(\\d{10,})-49hbz_fhm$", "(DE-836)on$1")
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/limetrans/reference.fix/alma-836.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
"identifierOCLC" : "02262727"
} ],
"bib" : {
"identifierAuthority=mab" : "(DE-836)2262727-49hbz_fhm"
"identifierAuthority=mab" : "(DE-836)ocm02262727"
},
"collection" : "DE-836",
"dc" : {
Expand All @@ -417,7 +417,7 @@
},
"RecordIdentifier" : {
"identifierForTheIndex" : "(DE-836)991000000629706485",
"identifierForTheRecord" : "(DE-836)2262727-49hbz_fhm"
"identifierForTheRecord" : "(DE-836)ocm02262727"
},
"DateFirst" : {
"date" : "1954"
Expand Down Expand Up @@ -463,7 +463,7 @@
"xbib" : [ {
"uid" : "(DE-836)991000000629706485"
}, {
"uid" : "(DE-836)2262727-49hbz_fhm"
"uid" : "(DE-836)ocm02262727"
} ],
"RSWK" : [ {
"subjectTopicName" : "Electronics"
Expand Down

0 comments on commit 9e4f700

Please sign in to comment.