Skip to content

Commit

Permalink
Change publishedBy for secondaryPublicationEvent to array #2011
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jun 6, 2024
1 parent eb223f8 commit c6b1a12
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/main/resources/alma/fix/titleRelatedFields.fix
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ do list(path:"533 ", "var": "$i")
end
set_array("publication[].$last.description[]")
copy_field("$i.a", "publication[].$last.description[].$append")
copy_field("$i.c", "publication[].$last.publishedBy")
set_array("publication[].$last.publishedBy[]")
copy_field("$i.c", "publication[].$last.publishedBy[].$append")
do list(path: "$i.d", "var":"$j")
replace_all("$j", "\\[|\\]|ca. |c ", "")
unless exists("publication[].$last.startDate")
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990035016180206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type" : [ "SecondaryPublicationEvent" ],
"location" : [ "München [u.a.]" ],
"description" : [ "Mikrofiche-Ausg.:" ],
"publishedBy" : "Saur",
"publishedBy" : [ "Saur" ],
"startDate" : "1990",
"endDate" : "1994"
} ],
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990054089950206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"type" : [ "SecondaryPublicationEvent" ],
"location" : [ "Hamburg", "Wohltorf", "Berlin", "Woodbridge, Conn.", "Dortmund" ],
"description" : [ "Mikrofiche-Ausg." ],
"publishedBy" : "Mikrofilmarchiv der Deutschsprachigen Presse e. V., MFA"
"publishedBy" : [ "Alphacom", "IOS-Echo-GmbH", "ADN", "Primary Source Media", "Mikrofilmarchiv der Deutschsprachigen Presse e. V., MFA" ]
} ],
"shortTitle" : [ "Spiegel", "SPILB" ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990104908070206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"type" : [ "SecondaryPublicationEvent" ],
"location" : [ "Buffalo, NY" ],
"description" : [ "Mikrofiche-Ausg." ],
"publishedBy" : "Hein"
"publishedBy" : [ "Hein" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990104908070206441",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990118562160206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"type" : [ "SecondaryPublicationEvent" ],
"location" : [ "Köln" ],
"description" : [ "Mikrofiche-Ausg." ],
"publishedBy" : "Bundesanzeiger",
"publishedBy" : [ "Bundesanzeiger" ],
"startDate" : "2002"
} ],
"describedBy" : {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990196925330206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"type" : [ "SecondaryPublicationEvent" ],
"location" : [ "New Canaan, Conn." ],
"description" : [ "Mikrofilmausg." ],
"publishedBy" : "Readex"
"publishedBy" : [ "Readex" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990196925330206441",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990197023370206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"type" : [ "SecondaryPublicationEvent" ],
"location" : [ "Berlin" ],
"description" : [ "Digital. Ausg." ],
"publishedBy" : "Staatsbibliothek zu Berlin"
"publishedBy" : [ "Staatsbibliothek zu Berlin" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990197023370206441",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990197067610206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"type" : [ "SecondaryPublicationEvent" ],
"location" : [ "Düsseldorf" ],
"description" : [ "Digitalisierte Ausg." ],
"publishedBy" : "Universitäts- und Landesbibliothek",
"publishedBy" : [ "Universitäts- und Landesbibliothek" ],
"startDate" : "2013"
} ],
"titleKeyword" : [ "Köln", "Sankt" ],
Expand Down

0 comments on commit c6b1a12

Please sign in to comment.