Skip to content

Commit

Permalink
Map 007t to medium Print if not manuscript #2009
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed May 24, 2024
1 parent 77daf01 commit 43e207e
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/main/resources/alma/fix/mediumAndType.fix
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,19 @@ end
#if any_match("006", "^[op].*")
# add_field("medium[].$append.label","Print")


if any_match("007", "(^k[fhjs]|^t[ab]).*") # I excluded ^o (Kit) and added all Pos01 for text except Braille.
add_field("medium[].$append.label","Print")
elsif any_match("@leaderTyp+008", "(Book|Music|Continuing Resources|Mixed materials)(.{23})[dr].*") # Pos23
unless any_match("@leaderPos06-07","[dftgij].")
if any_match("007", "(^k[fhjs]|^t.).*") # I excluded ^o (Kit) and added all Pos01 for text except Braille.
add_field("medium[].$append.label","Print")
end
end
if any_match("@leaderTyp+008", "(Book|Music|Continuing Resources|Mixed materials)(.{23})[dr].*") # Pos23
add_field("medium[].$append.label","Print")
elsif any_match("@leaderTyp+008", "(Map|Visual materials)(.{29})[dr].*") # Pos29
add_field("medium[].$append.label","Print")
elsif any_match("@leaderTyp+008", "Map.*")
unless any_match("337.b","c") # add medium "print" if map is non-electronic (337b code b computermedia)
add_field("medium[].$append.label","Print")
end
unless any_match("337.b","c") # add medium "print" if map is non-electronic (337b code b computermedia)
add_field("medium[].$append.label","Print")
end
# elsif any_match("@leaderTyp+008", "(Visual materials)(.{33})b.*") # Pos33 I excluded Kit
# add_field("medium[].$append.label","Print")
elsif any_match("006", "[acdpst]](.{5})[dr].*") # Pos00+06 Added Print for pos 006.
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990054089950206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -60149,6 +60149,9 @@
"id" : "http://lobid.org/items/990054089950206441:DE-1032:991001285599706474#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
}, {
"label" : "Mikroformat",
"id" : "http://rdaregistry.info/termList/RDAMediaType/1002"
} ],
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990104908070206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
"version" : "sdnb"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
}, {
"label" : "Mikroformat",
"id" : "http://rdaregistry.info/termList/RDAMediaType/1002"
} ],
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990118562160206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
"id" : "http://lobid.org/items/990118562160206441:DE-465:23420787060006446#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
}, {
"label" : "Mikroformat",
"id" : "http://rdaregistry.info/termList/RDAMediaType/1002"
} ],
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990123613330206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
}, {
"label" : "Audio-Kassette",
"id" : "http://id.loc.gov/vocabulary/carriers/ss"
}, {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monographic component part",
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990185619180206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
"medium" : [ {
"label" : "Audio-Dokument",
"id" : "http://purl.org/ontology/bibo/AudioDocument"
}, {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
}, {
"label" : "Datenträger",
"id" : "http://rdaregistry.info/termList/RDAMediaType/1003"
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990196925330206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
"version" : "sdnb"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
}, {
"label" : "Mikroformat",
"id" : "http://rdaregistry.info/termList/RDAMediaType/1002"
} ],
Expand Down

0 comments on commit 43e207e

Please sign in to comment.