diff --git a/src/main/resources/alma/fix/titleRelatedFields.fix b/src/main/resources/alma/fix/titleRelatedFields.fix index 080b8c7c0..3c5a7c51c 100644 --- a/src/main/resources/alma/fix/titleRelatedFields.fix +++ b/src/main/resources/alma/fix/titleRelatedFields.fix @@ -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") diff --git a/src/test/resources/alma-fix/990035016180206441.json b/src/test/resources/alma-fix/990035016180206441.json index 45a5c54fb..400196754 100644 --- a/src/test/resources/alma-fix/990035016180206441.json +++ b/src/test/resources/alma-fix/990035016180206441.json @@ -21,7 +21,7 @@ "type" : [ "SecondaryPublicationEvent" ], "location" : [ "München [u.a.]" ], "description" : [ "Mikrofiche-Ausg.:" ], - "publishedBy" : "Saur", + "publishedBy" : [ "Saur" ], "startDate" : "1990", "endDate" : "1994" } ], diff --git a/src/test/resources/alma-fix/990054089950206441.json b/src/test/resources/alma-fix/990054089950206441.json index a16d8f123..87f5c5e4b 100644 --- a/src/test/resources/alma-fix/990054089950206441.json +++ b/src/test/resources/alma-fix/990054089950206441.json @@ -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" : { diff --git a/src/test/resources/alma-fix/990104908070206441.json b/src/test/resources/alma-fix/990104908070206441.json index 5eb14fdb8..8cec4a883 100644 --- a/src/test/resources/alma-fix/990104908070206441.json +++ b/src/test/resources/alma-fix/990104908070206441.json @@ -28,7 +28,7 @@ "type" : [ "SecondaryPublicationEvent" ], "location" : [ "Buffalo, NY" ], "description" : [ "Mikrofiche-Ausg." ], - "publishedBy" : "Hein" + "publishedBy" : [ "Hein" ] } ], "describedBy" : { "id" : "http://lobid.org/resources/990104908070206441", diff --git a/src/test/resources/alma-fix/990118562160206441.json b/src/test/resources/alma-fix/990118562160206441.json index b746c5a2d..77b695498 100644 --- a/src/test/resources/alma-fix/990118562160206441.json +++ b/src/test/resources/alma-fix/990118562160206441.json @@ -23,7 +23,7 @@ "type" : [ "SecondaryPublicationEvent" ], "location" : [ "Köln" ], "description" : [ "Mikrofiche-Ausg." ], - "publishedBy" : "Bundesanzeiger", + "publishedBy" : [ "Bundesanzeiger" ], "startDate" : "2002" } ], "describedBy" : { diff --git a/src/test/resources/alma-fix/990196925330206441.json b/src/test/resources/alma-fix/990196925330206441.json index 0cf0473e8..9a2493e51 100644 --- a/src/test/resources/alma-fix/990196925330206441.json +++ b/src/test/resources/alma-fix/990196925330206441.json @@ -33,7 +33,7 @@ "type" : [ "SecondaryPublicationEvent" ], "location" : [ "New Canaan, Conn." ], "description" : [ "Mikrofilmausg." ], - "publishedBy" : "Readex" + "publishedBy" : [ "Readex" ] } ], "describedBy" : { "id" : "http://lobid.org/resources/990196925330206441", diff --git a/src/test/resources/alma-fix/990197023370206441.json b/src/test/resources/alma-fix/990197023370206441.json index e27b56638..0bb5d937e 100644 --- a/src/test/resources/alma-fix/990197023370206441.json +++ b/src/test/resources/alma-fix/990197023370206441.json @@ -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", diff --git a/src/test/resources/alma-fix/990197067610206441.json b/src/test/resources/alma-fix/990197067610206441.json index 785503500..9690651ca 100644 --- a/src/test/resources/alma-fix/990197067610206441.json +++ b/src/test/resources/alma-fix/990197067610206441.json @@ -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" ],