From 970613f7ce5b76bde2d0fe186ef7176d9d48fcff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Wed, 26 Jul 2023 13:37:10 +0200 Subject: [PATCH 1/6] Use a macro for publication #1830 --- src/main/resources/alma/fix/macros.fix | 74 +++++++++++++++++++ .../resources/alma/fix/titleRelatedFields.fix | 73 +----------------- 2 files changed, 75 insertions(+), 72 deletions(-) diff --git a/src/main/resources/alma/fix/macros.fix b/src/main/resources/alma/fix/macros.fix index 7b52f7bb3..db12fba34 100644 --- a/src/main/resources/alma/fix/macros.fix +++ b/src/main/resources/alma/fix/macros.fix @@ -324,4 +324,78 @@ do put_macro("subjectLabel") copy_field("$i.z","subject[].$last.label.$append") copy_field("$i.v","subject[].$last.label.$append") join_field("subject[].$last.label"," / ") +end + +do put_macro("publication") + do list(path:"$[field]", "var":"$i") + add_field("publication[].$append.test","") + copy_field("362??.a","publication[].$last.publicationHistory") + do list(path: "$i.c", "var":"$j") + replace_all("$j", "\\[|\\]|ca. |c ", "") + unless exists("publication[].$last.startDate") + if any_match("$j",".*?([01]\\d{3}|20\\d{2}).*") + paste("publication[].$last.startDate", "$j") + end + end + unless exists("publication[].$last.endDate") + if any_match("$j",".*-[ ]?([01]\\d{3}|20\\d{2})$") + paste("publication[].$last.endDate", "$j") + end + end + end + # TODO is there a way to distinguish PublicationEvent and SecondaryPublicationEvent? + set_array("publication[].$last.type[]","PublicationEvent") + set_array("publication[].$last.location[]") + copy_field("$i.a", "publication[].$last.location[].$append") + set_array("publication[].$last.publishedBy[]") + copy_field("$i.b", "publication[].$last.publishedBy[].$append") + set_array("publication[].$last.frequency[]") + if any_match("leader","^.{6}(a[bis]|m[bis]).*$") # checks if continous ressource + unless any_match("008","^.{18}[#\\| u].*$") # filters out not matching values and also the value unknown + copy_field("008","publication[].$last.frequency[].$append.id") + replace_all("publication[].$last.frequency[].$last.id", "^.{18}(.).*$", "http://marc21rdf.info/terms/continuingfre#$1") + end + elsif any_match("006","^s.*$") + do list(path: "006", "var":"$z") + if any_match("$z","^s.*$") + unless any_match("$z","^.[#\\| u].*$") + copy_field("$z","publication[].$last.frequency[].$append.id") + replace_all("publication[].$last.frequency[].$last.id", "^.(.).*$", "http://marc21rdf.info/terms/continuingfre#$1") + end + end + end + end + set_array("publication[].$last.note[]") + copy_field("515??.a","publication[].$last.note[].$append") + if exists("$i.6") + copy_field("$i.6","$i.linkageTest") + do list(path:"880??","var":"$880") + if in ("$i.linkageTest","$880.linkageTest") + if in ("$880.@script.id","alternateGraphicRepresentation[].*.script.id") + do list(path:"alternateGraphicRepresentation[]","var":"$AGR") + if in ("$880.@script.id","$AGR.script.id") + unless exists("$AGR.record.publication[]") + set_array("$AGR.record.publication[]") + end + add_field ("$AGR.record.publication[].$append.dummi","") + set_array("$AGR.record.publication[].$last.location[]") + copy_field("$880.a", "$AGR.record.publication[].$last.location[].$append") + set_array("$AGR.record.publication[].$last.publishedBy[]") + copy_field("$880.b", "$AGR.record.publication[].$last.publishedBy[].$append") + end + end + else + copy_field("$880.@script.id","alternateGraphicRepresentation[].$append.script.id") + copy_field("$880.@script.label","alternateGraphicRepresentation[].$last.script.label") + set_array("alternateGraphicRepresentation[].$last.publication[]") + add_field ("alternateGraphicRepresentation[].$last.publication[].$append.dummi","") + set_array("alternateGraphicRepresentation[].$last.publication[].$last.location[]") + copy_field("$880.a", "alternateGraphicRepresentation[].$last.publication[].$last.location[].$append") + set_array("alternateGraphicRepresentation[].$last.publication[].$last.publishedBy[]") + copy_field("$880.b", "alternateGraphicRepresentation[].$last.publication[].$last.publishedBy[].$append") + end + end + end + end + end end \ No newline at end of file diff --git a/src/main/resources/alma/fix/titleRelatedFields.fix b/src/main/resources/alma/fix/titleRelatedFields.fix index d7d161ced..2c6817287 100644 --- a/src/main/resources/alma/fix/titleRelatedFields.fix +++ b/src/main/resources/alma/fix/titleRelatedFields.fix @@ -223,78 +223,7 @@ end # 515 - Numbering Peculiarities Note (R) set_array("publication[]") -do list(path:"260[ 23] |264[ 23][ 1]", "var":"$i") - add_field("publication[].$append.test","") - copy_field("362??.a","publication[].$last.publicationHistory") - do list(path: "$i.c", "var":"$j") - replace_all("$j", "\\[|\\]|ca. |c ", "") - unless exists("publication[].$last.startDate") - if any_match("$j",".*?([01]\\d{3}|20\\d{2}).*") - paste("publication[].$last.startDate", "$j") - end - end - unless exists("publication[].$last.endDate") - if any_match("$j",".*-[ ]?([01]\\d{3}|20\\d{2})$") - paste("publication[].$last.endDate", "$j") - end - end - end - # TODO is there a way to distinguish PublicationEvent and SecondaryPublicationEvent? - set_array("publication[].$last.type[]","PublicationEvent") - set_array("publication[].$last.location[]") - copy_field("$i.a", "publication[].$last.location[].$append") - set_array("publication[].$last.publishedBy[]") - copy_field("$i.b", "publication[].$last.publishedBy[].$append") - set_array("publication[].$last.frequency[]") - if any_match("leader","^.{6}(a[bis]|m[bis]).*$") # checks if continous ressource - unless any_match("008","^.{18}[#\\| u].*$") # filters out not matching values and also the value unknown - copy_field("008","publication[].$last.frequency[].$append.id") - replace_all("publication[].$last.frequency[].$last.id", "^.{18}(.).*$", "http://marc21rdf.info/terms/continuingfre#$1") - end - elsif any_match("006","^s.*$") - do list(path: "006", "var":"$z") - if any_match("$z","^s.*$") - unless any_match("$z","^.[#\\| u].*$") - copy_field("$z","publication[].$last.frequency[].$append.id") - replace_all("publication[].$last.frequency[].$last.id", "^.(.).*$", "http://marc21rdf.info/terms/continuingfre#$1") - end - end - end - end - set_array("publication[].$last.note[]") - copy_field("515??.a","publication[].$last.note[].$append") - if exists("$i.6") - copy_field("$i.6","$i.linkageTest") - do list(path:"880??","var":"$880") - if in ("$i.linkageTest","$880.linkageTest") - if in ("$880.@script.id","alternateGraphicRepresentation[].*.script.id") - do list(path:"alternateGraphicRepresentation[]","var":"$AGR") - if in ("$880.@script.id","$AGR.script.id") - unless exists("$AGR.record.publication[]") - set_array("$AGR.record.publication[]") - end - add_field ("$AGR.record.publication[].$append.dummi","") - set_array("$AGR.record.publication[].$last.location[]") - copy_field("$880.a", "$AGR.record.publication[].$last.location[].$append") - set_array("$AGR.record.publication[].$last.publishedBy[]") - copy_field("$880.b", "$AGR.record.publication[].$last.publishedBy[].$append") - end - end - else - copy_field("$880.@script.id","alternateGraphicRepresentation[].$append.script.id") - copy_field("$880.@script.label","alternateGraphicRepresentation[].$last.script.label") - set_array("alternateGraphicRepresentation[].$last.publication[]") - add_field ("alternateGraphicRepresentation[].$last.publication[].$append.dummi","") - set_array("alternateGraphicRepresentation[].$last.publication[].$last.location[]") - copy_field("$880.a", "alternateGraphicRepresentation[].$last.publication[].$last.location[].$append") - set_array("alternateGraphicRepresentation[].$last.publication[].$last.publishedBy[]") - copy_field("$880.b", "alternateGraphicRepresentation[].$last.publication[].$last.publishedBy[].$append") - end - end - end - end -end - +call_macro("publication",field:"260[ 23] |264[ 23][ 1]") do list(path:"500 ", "var":"$i") if any_match("$i.a", "^.*saṃ. \\d{4}=(\\d{4}).*Chr.*") From 7224c90e531168630099e3dece1346ae32c9ba3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Wed, 26 Jul 2023 13:41:21 +0200 Subject: [PATCH 2/6] Prefer 264 over 260 for publiation #1830 --- src/main/resources/alma/fix/titleRelatedFields.fix | 6 +++++- src/test/resources/alma-fix/99370763882706441.json | 5 ----- src/test/resources/alma-fix/99371123630706441.json | 5 ----- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/main/resources/alma/fix/titleRelatedFields.fix b/src/main/resources/alma/fix/titleRelatedFields.fix index 2c6817287..ab131fae3 100644 --- a/src/main/resources/alma/fix/titleRelatedFields.fix +++ b/src/main/resources/alma/fix/titleRelatedFields.fix @@ -223,7 +223,11 @@ end # 515 - Numbering Peculiarities Note (R) set_array("publication[]") -call_macro("publication",field:"260[ 23] |264[ 23][ 1]") +if exists("264[ 23][ 1]") + call_macro("publication",field:"264[ 23][ 1]") +else + call_macro("publication",field:"260[ 23] ") +end do list(path:"500 ", "var":"$i") if any_match("$i.a", "^.*saṃ. \\d{4}=(\\d{4}).*Chr.*") diff --git a/src/test/resources/alma-fix/99370763882706441.json b/src/test/resources/alma-fix/99370763882706441.json index 87a333bdb..90593e060 100644 --- a/src/test/resources/alma-fix/99370763882706441.json +++ b/src/test/resources/alma-fix/99370763882706441.json @@ -5,11 +5,6 @@ "oclcNumber" : [ "70765802" ], "title" : "Lexicology, Semantics and Lexicography : Selected Papers from the Fourth G.L. Brook Symposium, Manchester, August 1998", "publication" : [ { - "startDate" : "2000", - "type" : [ "PublicationEvent" ], - "location" : [ "Philadelphia, PA, USA" ], - "publishedBy" : [ "John Benjamins Publishing Company" ] - }, { "type" : [ "PublicationEvent" ], "publishedBy" : [ "John Benjamins Publishing Company" ] } ], diff --git a/src/test/resources/alma-fix/99371123630706441.json b/src/test/resources/alma-fix/99371123630706441.json index b88a9c548..2cde95ce1 100644 --- a/src/test/resources/alma-fix/99371123630706441.json +++ b/src/test/resources/alma-fix/99371123630706441.json @@ -5,11 +5,6 @@ "title" : "Perspektive Nord", "otherTitleInformation" : [ "zu theorie und praxis einer modernen didaktik der landeskunde : beiträge zur 2. Konferenz des Netzwerks Landeskunde Nord in Stockholm am 24./25. Januar 2014" ], "publication" : [ { - "startDate" : "2015", - "type" : [ "PublicationEvent" ], - "location" : [ "Bern" ], - "publishedBy" : [ "Peter Lang International Academic Publishing Group" ] - }, { "startDate" : "2015", "type" : [ "PublicationEvent" ], "location" : [ "Frankfurt am Main, [Germany] :" ], From 506dadfe8de6725263bd0dc71a538b20dd0d0136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Wed, 26 Jul 2023 14:26:51 +0200 Subject: [PATCH 3/6] Only add fields outside of 264 or 260 to the first `publication`-object #1830 Relates to `frequency`,`publicationHistory`,`note` and the mapping of indian pub dates. --- src/main/resources/alma/fix/macros.fix | 20 ---------- .../resources/alma/fix/titleRelatedFields.fix | 39 +++++++++++++++---- .../alma-fix/990052965140206441.json | 4 +- .../alma-fix/990053976760206441.json | 9 +---- .../alma-fix/990054215550206441.json | 4 +- .../alma-fix/990054301770206441.json | 4 +- .../alma-fix/990054345550206441.json | 2 +- .../alma-fix/990055981810206441.json | 9 +---- .../alma-fix/990103770440206441.json | 2 +- .../alma-fix/990103899140206441.json | 4 +- .../alma-fix/990104908070206441.json | 4 +- .../alma-fix/990108740950206441.json | 18 ++------- .../alma-fix/990108873860206441.json | 4 +- .../alma-fix/990108874370206441.json | 4 +- .../alma-fix/990109712970206441.json | 10 +---- .../alma-fix/990113537330206441.json | 4 +- .../alma-fix/990133067580206441.json | 4 +- .../alma-fix/990136041660206441.json | 2 +- .../alma-fix/990183054020206441.json | 2 +- .../alma-fix/990184127410206441.json | 4 +- .../alma-fix/990193229450206441.json | 6 +-- .../alma-fix/990196925330206441.json | 2 +- .../alma-fix/990197023370206441.json | 4 +- .../alma-fix/990199611280206441.json | 4 +- .../alma-fix/990210093550206441.json | 4 +- .../alma-fix/990213906490206441.json | 2 +- .../alma-fix/991005935279706485.json | 2 +- .../resources/alma-fix/99370678063606441.json | 2 +- .../resources/alma-fix/99370682219806441.json | 2 +- .../resources/alma-fix/99370694196806441.json | 4 +- .../resources/alma-fix/99370699582506441.json | 4 +- .../resources/alma-fix/99371107766906441.json | 15 +++---- .../resources/alma-fix/99371147104906441.json | 2 +- .../resources/alma-fix/99371981001306441.json | 2 +- 34 files changed, 89 insertions(+), 119 deletions(-) diff --git a/src/main/resources/alma/fix/macros.fix b/src/main/resources/alma/fix/macros.fix index db12fba34..18cbf8a2f 100644 --- a/src/main/resources/alma/fix/macros.fix +++ b/src/main/resources/alma/fix/macros.fix @@ -329,7 +329,6 @@ end do put_macro("publication") do list(path:"$[field]", "var":"$i") add_field("publication[].$append.test","") - copy_field("362??.a","publication[].$last.publicationHistory") do list(path: "$i.c", "var":"$j") replace_all("$j", "\\[|\\]|ca. |c ", "") unless exists("publication[].$last.startDate") @@ -343,30 +342,11 @@ do put_macro("publication") end end end - # TODO is there a way to distinguish PublicationEvent and SecondaryPublicationEvent? set_array("publication[].$last.type[]","PublicationEvent") set_array("publication[].$last.location[]") copy_field("$i.a", "publication[].$last.location[].$append") set_array("publication[].$last.publishedBy[]") copy_field("$i.b", "publication[].$last.publishedBy[].$append") - set_array("publication[].$last.frequency[]") - if any_match("leader","^.{6}(a[bis]|m[bis]).*$") # checks if continous ressource - unless any_match("008","^.{18}[#\\| u].*$") # filters out not matching values and also the value unknown - copy_field("008","publication[].$last.frequency[].$append.id") - replace_all("publication[].$last.frequency[].$last.id", "^.{18}(.).*$", "http://marc21rdf.info/terms/continuingfre#$1") - end - elsif any_match("006","^s.*$") - do list(path: "006", "var":"$z") - if any_match("$z","^s.*$") - unless any_match("$z","^.[#\\| u].*$") - copy_field("$z","publication[].$last.frequency[].$append.id") - replace_all("publication[].$last.frequency[].$last.id", "^.(.).*$", "http://marc21rdf.info/terms/continuingfre#$1") - end - end - end - end - set_array("publication[].$last.note[]") - copy_field("515??.a","publication[].$last.note[].$append") if exists("$i.6") copy_field("$i.6","$i.linkageTest") do list(path:"880??","var":"$880") diff --git a/src/main/resources/alma/fix/titleRelatedFields.fix b/src/main/resources/alma/fix/titleRelatedFields.fix index ab131fae3..c211f1fa1 100644 --- a/src/main/resources/alma/fix/titleRelatedFields.fix +++ b/src/main/resources/alma/fix/titleRelatedFields.fix @@ -224,16 +224,41 @@ end set_array("publication[]") if exists("264[ 23][ 1]") - call_macro("publication",field:"264[ 23][ 1]") + call_macro("publication",field:"2643[ 1]") # 3 - Current/Latest + call_macro("publication",field:"2642[ 1]") # 2 - Intervening + call_macro("publication",field:"264 [ 1]") # # - Not applicable/No information provided/Earliest else - call_macro("publication",field:"260[ 23] ") + call_macro("publication",field:"2603[ 1]") # 3 - Current/Latest + call_macro("publication",field:"2602[ 1]") # 2 - Intervening + call_macro("publication",field:"260 [ 1]") # # - Not applicable/No information provided/Earliest end -do list(path:"500 ", "var":"$i") - if any_match("$i.a", "^.*saṃ. \\d{4}=(\\d{4}).*Chr.*") - remove_field("publication[].$last.startDate") - copy_field("$i.a","publication[].$last.startDate") - replace_all("publication[].$last.startDate","^.*saṃ. \\d{4}=(\\d{4}).*Chr.*","$1") +if exists("publication[].$first") + copy_field("362??.a","publication[].$first.publicationHistory") + set_array("publication[].$first.frequency[]") + if any_match("leader","^.{6}(a[bis]|m[bis]).*$") # checks if continous ressource + unless any_match("008","^.{18}[#\\| u].*$") # filters out not matching values and also the value unknown + copy_field("008","publication[].$first.frequency[].$append.id") + replace_all("publication[].$first.frequency[].$last.id", "^.{18}(.).*$", "http://marc21rdf.info/terms/continuingfre#$1") + end + elsif any_match("006","^s.*$") + do list(path: "006", "var":"$z") + if any_match("$z","^s.*$") + unless any_match("$z","^.[#\\| u].*$") + copy_field("$z","publication[].$first.frequency[].$append.id") + replace_all("publication[].$first.frequency[].$last.id", "^.(.).*$", "http://marc21rdf.info/terms/continuingfre#$1") + end + end + end + end + set_array("publication[].$first.note[]") + copy_field("515??.a","publication[].$first.note[].$append") + do list(path:"500 ", "var":"$i") + if any_match("$i.a", "^.*saṃ. \\d{4}=(\\d{4}).*Chr.*") + remove_field("publication[].$first.startDate") + copy_field("$i.a","publication[].$first.startDate") + replace_all("publication[].$first.startDate","^.*saṃ. \\d{4}=(\\d{4}).*Chr.*","$1") + end end end diff --git a/src/test/resources/alma-fix/990052965140206441.json b/src/test/resources/alma-fix/990052965140206441.json index 81049a4d3..24e720bee 100644 --- a/src/test/resources/alma-fix/990052965140206441.json +++ b/src/test/resources/alma-fix/990052965140206441.json @@ -6,10 +6,10 @@ "oclcNumber" : [ "183288969" ], "title" : "Zweckverband Naturpark Kottenforst-Ville", "publication" : [ { - "publicationHistory" : "1.1985 - 4.2001; damit Ersch. eingest.", "type" : [ "PublicationEvent" ], "location" : [ "Köln [i.e.] Pulheim" ], - "publishedBy" : [ "Rheinland-Verl." ] + "publishedBy" : [ "Rheinland-Verl." ], + "publicationHistory" : "1.1985 - 4.2001; damit Ersch. eingest." } ], "describedBy" : { "id" : "http://lobid.org/resources/990052965140206441", diff --git a/src/test/resources/alma-fix/990053976760206441.json b/src/test/resources/alma-fix/990053976760206441.json index bd599eece..d94ea4283 100644 --- a/src/test/resources/alma-fix/990053976760206441.json +++ b/src/test/resources/alma-fix/990053976760206441.json @@ -9,25 +9,20 @@ "hbzId" : "HT000312236", "title" : "Physik in der Schule", "publication" : [ { - "publicationHistory" : "2.1964,7 - 38.2000", "startDate" : "1964", "endDate" : "2000", "type" : [ "PublicationEvent" ], "location" : [ "Berlin" ], "publishedBy" : [ "Pädagogischer Zeitschriftenverl." ], + "publicationHistory" : "2.1964,7 - 38.2000", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#m", "label" : "monatlich" } ] }, { - "publicationHistory" : "2.1964,7 - 38.2000", "type" : [ "PublicationEvent" ], "location" : [ "Berlin" ], - "publishedBy" : [ "Verl. Volk & Wissen" ], - "frequency" : [ { - "id" : "http://marc21rdf.info/terms/continuingfre#m", - "label" : "monatlich" - } ] + "publishedBy" : [ "Verl. Volk & Wissen" ] } ], "shortTitle" : [ "Phys. Sch." ], "describedBy" : { diff --git a/src/test/resources/alma-fix/990054215550206441.json b/src/test/resources/alma-fix/990054215550206441.json index b5f0ca94a..5ab9826cf 100644 --- a/src/test/resources/alma-fix/990054215550206441.json +++ b/src/test/resources/alma-fix/990054215550206441.json @@ -11,12 +11,12 @@ "alternativeTitle" : [ "Bulletin annuel de statistiques des transports pour l'Europe et l'Amérique du Nord", "Ežegodnyj bjulleten' statistiki transporta dlja Evropy i Severnoj Ameriki", "Annual bulletin of transport statistics for Europe ( Hauptsacht. bis 44.1994 )", "Bulletin annuel de statistiques de transports européens ( Parallelsacht. bis 44.1994 )", "Ežegodnyj bjulleten' evropejskoj statistiki transporta ( Parallelsacht. bis 44.1994 )" ], "otherTitleInformation" : [ "= Bulletin annuel de statistiques des transports pour l'Europe et l'Amérique du Nord = Ežegodnyj bjulleten' statistiki transporta dlja Evropy i Severnoj Ameriki" ], "publication" : [ { - "publicationHistory" : "6.1954(1955) - 52.2004", "startDate" : "1955", "endDate" : "2004", "type" : [ "PublicationEvent" ], "location" : [ "Genève [u.a.]" ], - "publishedBy" : [ "UN" ] + "publishedBy" : [ "UN" ], + "publicationHistory" : "6.1954(1955) - 52.2004" } ], "describedBy" : { "id" : "http://lobid.org/resources/990054215550206441", diff --git a/src/test/resources/alma-fix/990054301770206441.json b/src/test/resources/alma-fix/990054301770206441.json index 2b19f8a52..25b3eeb18 100644 --- a/src/test/resources/alma-fix/990054301770206441.json +++ b/src/test/resources/alma-fix/990054301770206441.json @@ -11,12 +11,12 @@ "alternativeTitle" : [ "Reisen in Deutschland / 2", "Bayern ( Sachl. Benennung bis 25.1975 )" ], "otherTitleInformation" : [ "deutsches Handbuch für Fremdenverkehr" ], "publication" : [ { - "publicationHistory" : "19.[1966] - 34.1984", "startDate" : "1966", "endDate" : "1984", "type" : [ "PublicationEvent" ], "location" : [ "Darmstadt" ], - "publishedBy" : [ "Jaeger" ] + "publishedBy" : [ "Jaeger" ], + "publicationHistory" : "19.[1966] - 34.1984" } ], "describedBy" : { "id" : "http://lobid.org/resources/990054301770206441", diff --git a/src/test/resources/alma-fix/990054345550206441.json b/src/test/resources/alma-fix/990054345550206441.json index b256ee377..80fa8aa1d 100644 --- a/src/test/resources/alma-fix/990054345550206441.json +++ b/src/test/resources/alma-fix/990054345550206441.json @@ -10,11 +10,11 @@ "title" : "Eilendorfer Heimatblätter", "otherTitleInformation" : [ "Jahresschrift des Heimatvereins Eilendorf 1983 e.V" ], "publication" : [ { - "publicationHistory" : "1.1983(1984) -", "startDate" : "1984", "type" : [ "PublicationEvent" ], "location" : [ "Aachen-Eilendorf" ], "publishedBy" : [ "Heimatverein" ], + "publicationHistory" : "1.1983(1984) -", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#z", "label" : "unregelmäßig oder sonstige Erscheinungsfrequenz" diff --git a/src/test/resources/alma-fix/990055981810206441.json b/src/test/resources/alma-fix/990055981810206441.json index a5431e883..5b4e527e7 100644 --- a/src/test/resources/alma-fix/990055981810206441.json +++ b/src/test/resources/alma-fix/990055981810206441.json @@ -10,25 +10,20 @@ "title" : "Bochumer Zeitpunkte", "otherTitleInformation" : [ "Beiträge zur Stadtgeschichte, Heimatkunde und Denkmalpflege" ], "publication" : [ { - "publicationHistory" : "1.1991 -", "startDate" : "1991", "type" : [ "PublicationEvent" ], "location" : [ "Bochum" ], "publishedBy" : [ "Kortum-Gesellschaft Bochum" ], + "publicationHistory" : "1.1991 -", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#z", "label" : "unregelmäßig oder sonstige Erscheinungsfrequenz" } ] }, { - "publicationHistory" : "1.1991 -", "startDate" : "1991", "type" : [ "PublicationEvent" ], "location" : [ "Bochum" ], - "publishedBy" : [ "Kracht" ], - "frequency" : [ { - "id" : "http://marc21rdf.info/terms/continuingfre#z", - "label" : "unregelmäßig oder sonstige Erscheinungsfrequenz" - } ] + "publishedBy" : [ "Kracht" ] } ], "describedBy" : { "id" : "http://lobid.org/resources/990055981810206441", diff --git a/src/test/resources/alma-fix/990103770440206441.json b/src/test/resources/alma-fix/990103770440206441.json index 195301bd9..faa579d37 100644 --- a/src/test/resources/alma-fix/990103770440206441.json +++ b/src/test/resources/alma-fix/990103770440206441.json @@ -8,11 +8,11 @@ "hbzId" : "HT012224491", "title" : "Wettersbacher Anzeiger", "publication" : [ { - "publicationHistory" : "Nachgewiesen 1979 -", "startDate" : "1972", "type" : [ "PublicationEvent" ], "location" : [ "Weil der Stadt" ], "publishedBy" : [ "Nussbaum" ], + "publicationHistory" : "Nachgewiesen 1979 -", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#w", "label" : "wöchentlich" diff --git a/src/test/resources/alma-fix/990103899140206441.json b/src/test/resources/alma-fix/990103899140206441.json index 938525199..a8d7503ac 100644 --- a/src/test/resources/alma-fix/990103899140206441.json +++ b/src/test/resources/alma-fix/990103899140206441.json @@ -8,12 +8,12 @@ "hbzId" : "HT012237361", "title" : "Statistische Berichte des Statistischen Landesamtes Rheinland-Pfalz, L. IV. 6: Finanzen und Steuern. Einheitswerte des Grundvermögens nach der Hauptfeststellung : Gemeindeergebnisse", "publication" : [ { - "publicationHistory" : "1964(1975); damit Ersch. eingest.", "startDate" : "1975", "endDate" : "1975", "type" : [ "PublicationEvent" ], "location" : [ "Bad Ems" ], - "publishedBy" : [ "Statist. Landesamt" ] + "publishedBy" : [ "Statist. Landesamt" ], + "publicationHistory" : "1964(1975); damit Ersch. eingest." } ], "describedBy" : { "id" : "http://lobid.org/resources/990103899140206441", diff --git a/src/test/resources/alma-fix/990104908070206441.json b/src/test/resources/alma-fix/990104908070206441.json index 8eabfc78a..c00278b19 100644 --- a/src/test/resources/alma-fix/990104908070206441.json +++ b/src/test/resources/alma-fix/990104908070206441.json @@ -10,11 +10,11 @@ "alternativeTitle" : [ "Appropriation acts ( Nebent. d. Mikrofiche-Ausg. )" ], "otherTitleInformation" : [ "passed at the session of ..." ], "publication" : [ { - "publicationHistory" : "Nachgewiesen 1911 -", "startDate" : "1911", "type" : [ "PublicationEvent" ], "location" : [ "Harrisburg, Pa." ], - "publishedBy" : [ "[Verlag nicht ermittelbar]" ] + "publishedBy" : [ "[Verlag nicht ermittelbar]" ], + "publicationHistory" : "Nachgewiesen 1911 -" }, { "type" : [ "SecondaryPublicationEvent" ], "location" : [ "Buffalo, NY" ], diff --git a/src/test/resources/alma-fix/990108740950206441.json b/src/test/resources/alma-fix/990108740950206441.json index 0198aeed3..8e61c2385 100644 --- a/src/test/resources/alma-fix/990108740950206441.json +++ b/src/test/resources/alma-fix/990108740950206441.json @@ -9,37 +9,25 @@ "title" : "Tauben- und Hühnerzeitung", "otherTitleInformation" : [ "Organ der gesammten Haus-Federviehzucht, mit Inbegriff der Sangvögel" ], "publication" : [ { - "publicationHistory" : "2.1857,28(11.Juli) - 7.1862 nachgewiesen", "startDate" : "1861", "endDate" : "1862", "type" : [ "PublicationEvent" ], "location" : [ "Berlin" ], "publishedBy" : [ "Schotte" ], + "publicationHistory" : "2.1857,28(11.Juli) - 7.1862 nachgewiesen", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#w", "label" : "wöchentlich" } ], "note" : [ "Periodizität: wöchentl." ] }, { - "publicationHistory" : "2.1857,28(11.Juli) - 7.1862 nachgewiesen", "type" : [ "PublicationEvent" ], "location" : [ "Berlin" ], - "publishedBy" : [ "Janke" ], - "frequency" : [ { - "id" : "http://marc21rdf.info/terms/continuingfre#w", - "label" : "wöchentlich" - } ], - "note" : [ "Periodizität: wöchentl." ] + "publishedBy" : [ "Janke" ] }, { - "publicationHistory" : "2.1857,28(11.Juli) - 7.1862 nachgewiesen", "type" : [ "PublicationEvent" ], "location" : [ "Berlin" ], - "publishedBy" : [ "Voss" ], - "frequency" : [ { - "id" : "http://marc21rdf.info/terms/continuingfre#w", - "label" : "wöchentlich" - } ], - "note" : [ "Periodizität: wöchentl." ] + "publishedBy" : [ "Voss" ] } ], "describedBy" : { "id" : "http://lobid.org/resources/990108740950206441", diff --git a/src/test/resources/alma-fix/990108873860206441.json b/src/test/resources/alma-fix/990108873860206441.json index 9c5ea5f60..2de0d8fe2 100644 --- a/src/test/resources/alma-fix/990108873860206441.json +++ b/src/test/resources/alma-fix/990108873860206441.json @@ -9,11 +9,11 @@ "hbzId" : "HT012734833", "title" : "Behavioural pharmacology", "publication" : [ { - "publicationHistory" : "1.1989 -", "startDate" : "1989", "type" : [ "PublicationEvent" ], "location" : [ "Philadelphia, Pa." ], - "publishedBy" : [ "Lippincott Williams & Wilkins" ] + "publishedBy" : [ "Lippincott Williams & Wilkins" ], + "publicationHistory" : "1.1989 -" } ], "shortTitle" : [ "Behav Pharmacol" ], "describedBy" : { diff --git a/src/test/resources/alma-fix/990108874370206441.json b/src/test/resources/alma-fix/990108874370206441.json index d46896a91..afa31cc8d 100644 --- a/src/test/resources/alma-fix/990108874370206441.json +++ b/src/test/resources/alma-fix/990108874370206441.json @@ -8,12 +8,12 @@ "hbzId" : "HT012734884", "title" : "Yearbook of anthropology", "publication" : [ { - "publicationHistory" : "1.1955", "startDate" : "1955", "endDate" : "1955", "type" : [ "PublicationEvent" ], "location" : [ "New York, NY" ], - "publishedBy" : [ "Found." ] + "publishedBy" : [ "Found." ], + "publicationHistory" : "1.1955" } ], "shortTitle" : [ "Yearb Anthropol" ], "describedBy" : { diff --git a/src/test/resources/alma-fix/990109712970206441.json b/src/test/resources/alma-fix/990109712970206441.json index 50573853c..8965097b9 100644 --- a/src/test/resources/alma-fix/990109712970206441.json +++ b/src/test/resources/alma-fix/990109712970206441.json @@ -9,27 +9,21 @@ "title" : "Bonner Beethoven-Studien", "otherTitleInformation" : [ "Mitteilungen aus dem Beethoven-Haus und Beethoven-Archiv Bonn" ], "publication" : [ { - "publicationHistory" : "1.1999 - 2.2001; 3.2003; 4.2005 - 8.2009; 9.2011 -", "startDate" : "1999", "type" : [ "PublicationEvent" ], "location" : [ "Bonn", "Leinfelden-Echterdingen" ], "publishedBy" : [ "Verl. Beethoven-Haus", "Carus" ], + "publicationHistory" : "1.1999 - 2.2001; 3.2003; 4.2005 - 8.2009; 9.2011 -", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#a", "label" : "jährlich" } ], "note" : [ "Ersch. jährl.; 2000 u. 2002 u. 2004 u. 2010 nicht ersch." ] }, { - "publicationHistory" : "1.1999 - 2.2001; 3.2003; 4.2005 - 8.2009; 9.2011 -", "startDate" : "2006", "type" : [ "PublicationEvent" ], "location" : [ "Bonn" ], - "publishedBy" : [ "Verl. Beethoven-Haus" ], - "frequency" : [ { - "id" : "http://marc21rdf.info/terms/continuingfre#a", - "label" : "jährlich" - } ], - "note" : [ "Ersch. jährl.; 2000 u. 2002 u. 2004 u. 2010 nicht ersch." ] + "publishedBy" : [ "Verl. Beethoven-Haus" ] } ], "describedBy" : { "id" : "http://lobid.org/resources/990109712970206441", diff --git a/src/test/resources/alma-fix/990113537330206441.json b/src/test/resources/alma-fix/990113537330206441.json index ccc0c930c..e290e46f9 100644 --- a/src/test/resources/alma-fix/990113537330206441.json +++ b/src/test/resources/alma-fix/990113537330206441.json @@ -10,12 +10,12 @@ "title" : "Mainz", "otherTitleInformation" : [ "Programm" ], "publication" : [ { - "publicationHistory" : "1999 - 2004; damit Ersch. eingest.", "startDate" : "1999", "endDate" : "2004", "type" : [ "PublicationEvent" ], "location" : [ "Mainz" ], - "publishedBy" : [ "[Verlag nicht ermittelbar]" ] + "publishedBy" : [ "[Verlag nicht ermittelbar]" ], + "publicationHistory" : "1999 - 2004; damit Ersch. eingest." } ], "describedBy" : { "id" : "http://lobid.org/resources/990113537330206441", diff --git a/src/test/resources/alma-fix/990133067580206441.json b/src/test/resources/alma-fix/990133067580206441.json index 864357d0d..9fbda375c 100644 --- a/src/test/resources/alma-fix/990133067580206441.json +++ b/src/test/resources/alma-fix/990133067580206441.json @@ -9,11 +9,11 @@ "title" : "Nordrhein-Westfälische Bibliographie", "otherTitleInformation" : [ "Regionale Literaturdokumentation ab Berichtsjahr ..." ], "publication" : [ { - "publicationHistory" : "1983 -", "startDate" : "1983", "type" : [ "PublicationEvent" ], "location" : [ "Köln" ], - "publishedBy" : [ "HBZ" ] + "publishedBy" : [ "HBZ" ], + "publicationHistory" : "1983 -" } ], "describedBy" : { "id" : "http://lobid.org/resources/990133067580206441", diff --git a/src/test/resources/alma-fix/990136041660206441.json b/src/test/resources/alma-fix/990136041660206441.json index 1d63ae2ef..fda587bda 100644 --- a/src/test/resources/alma-fix/990136041660206441.json +++ b/src/test/resources/alma-fix/990136041660206441.json @@ -10,12 +10,12 @@ "alternativeTitle" : [ "Die Heimatzeitung", "Heimatzeitung für die Verbandsgemeinde Vallendar" ], "otherTitleInformation" : [ "die Heimatzeitung" ], "publication" : [ { - "publicationHistory" : "2005,1/20 - 2007,13", "startDate" : "2005", "endDate" : "2007", "type" : [ "PublicationEvent" ], "location" : [ "Sinzig" ], "publishedBy" : [ "Krupp" ], + "publicationHistory" : "2005,1/20 - 2007,13", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#w", "label" : "wöchentlich" diff --git a/src/test/resources/alma-fix/990183054020206441.json b/src/test/resources/alma-fix/990183054020206441.json index a87c1594a..fd36e48b4 100644 --- a/src/test/resources/alma-fix/990183054020206441.json +++ b/src/test/resources/alma-fix/990183054020206441.json @@ -10,11 +10,11 @@ "alternativeTitle" : [ "LWL - für die Menschen. Für Westfalen-Lippe" ], "otherTitleInformation" : [ "für das Jahr ..." ], "publication" : [ { - "publicationHistory" : "2004(2005) -", "startDate" : "2005", "type" : [ "PublicationEvent" ], "location" : [ "Münster" ], "publishedBy" : [ "Landschaftsverb. Westfalen-Lippe" ], + "publicationHistory" : "2004(2005) -", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#a", "label" : "jährlich" diff --git a/src/test/resources/alma-fix/990184127410206441.json b/src/test/resources/alma-fix/990184127410206441.json index 24ef8a4fa..b1562a329 100644 --- a/src/test/resources/alma-fix/990184127410206441.json +++ b/src/test/resources/alma-fix/990184127410206441.json @@ -10,12 +10,12 @@ "title" : "Wohnungsmarktbericht", "otherTitleInformation" : [ "Fortschreibung mit Stand ..." ], "publication" : [ { - "publicationHistory" : "2002=2001(2002) - 2004=2003(2004)", "startDate" : "2002", "endDate" : "2004", "type" : [ "PublicationEvent" ], "location" : [ "Düsseldorf" ], - "publishedBy" : [ "Amt für Wohnungswesen" ] + "publishedBy" : [ "Amt für Wohnungswesen" ], + "publicationHistory" : "2002=2001(2002) - 2004=2003(2004)" } ], "describedBy" : { "id" : "http://lobid.org/resources/990184127410206441", diff --git a/src/test/resources/alma-fix/990193229450206441.json b/src/test/resources/alma-fix/990193229450206441.json index 57dae2ab0..c1b266a66 100644 --- a/src/test/resources/alma-fix/990193229450206441.json +++ b/src/test/resources/alma-fix/990193229450206441.json @@ -10,21 +10,19 @@ "title" : "Westfälische Bibliographie zur Geschichte, Landeskunde und Volkskunde", "alternativeTitle" : [ "Veröffentlichungen der Historischen Kommission für Westfalen / Westfälische Bibliographie zur Geschichte, Landeskunde und Volkskunde" ], "publication" : [ { - "publicationHistory" : "1.1951/55; 2.1961/90; 3.1977; 4.2004=Register; damit Ersch. eingest.", "startDate" : "1951", "endDate" : "2004", "type" : [ "PublicationEvent" ], "location" : [ "Münster" ], "publishedBy" : [ "Regensberg", "Historische Kommission, Landschaftsverband Westfalen-Lippe" ], + "publicationHistory" : "1.1951/55; 2.1961/90; 3.1977; 4.2004=Register; damit Ersch. eingest.", "note" : [ "Ersch. in Lfg; springende Ersch.-Jahre" ] }, { - "publicationHistory" : "1.1951/55; 2.1961/90; 3.1977; 4.2004=Register; damit Ersch. eingest.", "startDate" : "1951", "endDate" : "1977", "type" : [ "PublicationEvent" ], "location" : [ "Münster" ], - "publishedBy" : [ "Regensberg" ], - "note" : [ "Ersch. in Lfg; springende Ersch.-Jahre" ] + "publishedBy" : [ "Regensberg" ] }, { "type" : [ "SecondaryPublicationEvent" ], "description" : [ "Digitalisierte Ausg." ] diff --git a/src/test/resources/alma-fix/990196925330206441.json b/src/test/resources/alma-fix/990196925330206441.json index 9e2cab00a..ccf1f0e0c 100644 --- a/src/test/resources/alma-fix/990196925330206441.json +++ b/src/test/resources/alma-fix/990196925330206441.json @@ -9,12 +9,12 @@ "title" : "The Geneva gazette", "alternativeTitle" : [ "Early American newspapers / The Geneva gazette" ], "publication" : [ { - "publicationHistory" : "1809,21.Juni - 1810,26.Dez.[?]", "startDate" : "1809", "endDate" : "1810", "type" : [ "PublicationEvent" ], "location" : [ "Geneva, NY" ], "publishedBy" : [ "[Verlag nicht ermittelbar]" ], + "publicationHistory" : "1809,21.Juni - 1810,26.Dez.[?]", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#w", "label" : "wöchentlich" diff --git a/src/test/resources/alma-fix/990197023370206441.json b/src/test/resources/alma-fix/990197023370206441.json index 9b26c98e2..dde9fa0eb 100644 --- a/src/test/resources/alma-fix/990197023370206441.json +++ b/src/test/resources/alma-fix/990197023370206441.json @@ -8,12 +8,12 @@ "hbzId" : "HT017664407", "title" : "Aegyptische Nachrichten", "publication" : [ { - "publicationHistory" : "1912,Jan.-Dez.; mehr nicht digitalisiert", "startDate" : "1912", "endDate" : "1912", "type" : [ "PublicationEvent" ], "location" : [ "Kairo" ], - "publishedBy" : [ "[Verlag nicht ermittelbar]" ] + "publishedBy" : [ "[Verlag nicht ermittelbar]" ], + "publicationHistory" : "1912,Jan.-Dez.; mehr nicht digitalisiert" }, { "type" : [ "SecondaryPublicationEvent" ], "location" : [ "Berlin" ], diff --git a/src/test/resources/alma-fix/990199611280206441.json b/src/test/resources/alma-fix/990199611280206441.json index d50312078..44cdddd9a 100644 --- a/src/test/resources/alma-fix/990199611280206441.json +++ b/src/test/resources/alma-fix/990199611280206441.json @@ -8,11 +8,11 @@ "title" : "Advances in special education", "otherTitleInformation" : [ "a research annual" ], "publication" : [ { - "publicationHistory" : "1.1980 - 3.1981; 4.1984 -", "startDate" : "1980", "type" : [ "PublicationEvent" ], "location" : [ "Greenwich, Conn." ], - "publishedBy" : [ "JAI Pr." ] + "publishedBy" : [ "JAI Pr." ], + "publicationHistory" : "1.1980 - 3.1981; 4.1984 -" } ], "describedBy" : { "id" : "http://lobid.org/resources/990199611280206441", diff --git a/src/test/resources/alma-fix/990210093550206441.json b/src/test/resources/alma-fix/990210093550206441.json index 7b0947f61..194142a66 100644 --- a/src/test/resources/alma-fix/990210093550206441.json +++ b/src/test/resources/alma-fix/990210093550206441.json @@ -9,11 +9,11 @@ "hbzId" : "HT018839495", "title" : "Classics in linguistics", "publication" : [ { - "publicationHistory" : "1-", "startDate" : "2015", "type" : [ "PublicationEvent" ], "location" : [ "Berlin" ], - "publishedBy" : [ "Language Science Press" ] + "publishedBy" : [ "Language Science Press" ], + "publicationHistory" : "1-" } ], "describedBy" : { "id" : "http://lobid.org/resources/990210093550206441", diff --git a/src/test/resources/alma-fix/990213906490206441.json b/src/test/resources/alma-fix/990213906490206441.json index 759aebf67..9d792061f 100644 --- a/src/test/resources/alma-fix/990213906490206441.json +++ b/src/test/resources/alma-fix/990213906490206441.json @@ -8,12 +8,12 @@ "hbzId" : "HT019128882", "title" : "Das Lied von Eis und Feuer", "publication" : [ { - "publicationHistory" : "Band 1, Heft 1 (2016)-Band 10, Heft 19 (2019) = Ausgabe 1-Ausgabe 46 ; damit Erscheinen eingestellt", "startDate" : "2016", "endDate" : "2019", "type" : [ "PublicationEvent" ], "location" : [ "Leipzig" ], "publishedBy" : [ "[Deutsche Zentralbücherei für Blinde (DZB)]" ], + "publicationHistory" : "Band 1, Heft 1 (2016)-Band 10, Heft 19 (2019) = Ausgabe 1-Ausgabe 46 ; damit Erscheinen eingestellt", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#w", "label" : "wöchentlich" diff --git a/src/test/resources/alma-fix/991005935279706485.json b/src/test/resources/alma-fix/991005935279706485.json index 25f7f884d..866b35c58 100644 --- a/src/test/resources/alma-fix/991005935279706485.json +++ b/src/test/resources/alma-fix/991005935279706485.json @@ -10,12 +10,12 @@ "title" : "Wirtschaft & Erziehung", "alternativeTitle" : [ "Wirtschaft und Erziehung", "Organ für kaufmännisches Bildungswesen", "Monatsschrift des Bundesverbandes der Lehrerinnen und Lehrer an Wirtschaftsschulen (VLW) e.V.", "Wirtschaft und Erziehung ( Hauptsacht. bis 64.2012,6 )" ], "publication" : [ { - "publicationHistory" : "1.1949-70. Jahrgang, Ausgabe 2 (2018)", "startDate" : "1949", "endDate" : "2018", "type" : [ "PublicationEvent" ], "location" : [ "Wolfenbüttel" ], "publishedBy" : [ "Heckner" ], + "publicationHistory" : "1.1949-70. Jahrgang, Ausgabe 2 (2018)", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#m", "label" : "monatlich" diff --git a/src/test/resources/alma-fix/99370678063606441.json b/src/test/resources/alma-fix/99370678063606441.json index 8de969d8b..954a62ac4 100644 --- a/src/test/resources/alma-fix/99370678063606441.json +++ b/src/test/resources/alma-fix/99370678063606441.json @@ -9,10 +9,10 @@ "title" : "ABI-Technik", "alternativeTitle" : [ "A.B.I.-Technik" ], "publication" : [ { - "publicationHistory" : "Began in 1981.", "type" : [ "PublicationEvent" ], "location" : [ "Berlin, Germany :" ], "publishedBy" : [ "De Gruyter" ], + "publicationHistory" : "Began in 1981.", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#q", "label" : "vierteljährlich" diff --git a/src/test/resources/alma-fix/99370682219806441.json b/src/test/resources/alma-fix/99370682219806441.json index 26373c928..eda11a701 100644 --- a/src/test/resources/alma-fix/99370682219806441.json +++ b/src/test/resources/alma-fix/99370682219806441.json @@ -11,11 +11,11 @@ "alternativeTitle" : [ "Kirche weltweit", "Mitteilungsblatt des Leipziger Missionswerkes der Evangelisch-Lutherischen Landeskirchen Mecklenburgs, Sachsens, Thüringens" ], "otherTitleInformation" : [ "Mitteilungsblatt des Leipziger Missionswerkes der Evangelisch-Lutherischen Landeskirche Sachsens und der Evangelischen Kirche in Mitteldeutschland" ], "publication" : [ { - "publicationHistory" : "Nachgewiesen 2006 -", "startDate" : "2006", "type" : [ "PublicationEvent" ], "location" : [ "Leipzig", "Dresden" ], "publishedBy" : [ "Evangelisch-Lutherisches Missionswerk Leipzig e.V. (LMW)", "SLUB" ], + "publicationHistory" : "Nachgewiesen 2006 -", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#q", "label" : "vierteljährlich" diff --git a/src/test/resources/alma-fix/99370694196806441.json b/src/test/resources/alma-fix/99370694196806441.json index 8a9eb8282..340229fbb 100644 --- a/src/test/resources/alma-fix/99370694196806441.json +++ b/src/test/resources/alma-fix/99370694196806441.json @@ -11,11 +11,11 @@ "alternativeTitle" : [ "Informationen für die rheinischen Museen" ], "otherTitleInformation" : [ "Informationen für die rheinischen Museen" ], "publication" : [ { - "publicationHistory" : "1.2012 -", "startDate" : "2012", "type" : [ "PublicationEvent" ], "location" : [ "Köln-Deutz" ], - "publishedBy" : [ "LVR-Dezernat Kultur und Umwelt" ] + "publishedBy" : [ "LVR-Dezernat Kultur und Umwelt" ], + "publicationHistory" : "1.2012 -" } ], "describedBy" : { "id" : "http://lobid.org/resources/99370694196806441", diff --git a/src/test/resources/alma-fix/99370699582506441.json b/src/test/resources/alma-fix/99370699582506441.json index 3ef93f3ee..93e02a6b7 100644 --- a/src/test/resources/alma-fix/99370699582506441.json +++ b/src/test/resources/alma-fix/99370699582506441.json @@ -10,11 +10,11 @@ "alternativeTitle" : [ "BUW-Output", "BUW-Output", "Output" ], "otherTitleInformation" : [ "Forschungsmagazin = Research bulletin / Universität Wuppertal ; hrsg. im Auftrag des Rektorates" ], "publication" : [ { - "publicationHistory" : "2009 -", "startDate" : "2009", "type" : [ "PublicationEvent" ], "location" : [ "Wuppertal" ], - "publishedBy" : [ "BUW" ] + "publishedBy" : [ "BUW" ], + "publicationHistory" : "2009 -" } ], "describedBy" : { "id" : "http://lobid.org/resources/99370699582506441", diff --git a/src/test/resources/alma-fix/99371107766906441.json b/src/test/resources/alma-fix/99371107766906441.json index 7224f2f01..1358279d2 100644 --- a/src/test/resources/alma-fix/99371107766906441.json +++ b/src/test/resources/alma-fix/99371107766906441.json @@ -4,23 +4,18 @@ "oclcNumber" : [ "945571548" ], "title" : "The natural family", "publication" : [ { - "publicationHistory" : "Began with volume 30, number 3 (2016).", - "type" : [ "PublicationEvent" ], - "location" : [ "Rockford, IL :" ], - "publishedBy" : [ "Howard Center for Family, Religion & Society" ], - "frequency" : [ { - "id" : "http://marc21rdf.info/terms/continuingfre#a", - "label" : "jährlich" - } ] - }, { - "publicationHistory" : "Began with volume 30, number 3 (2016).", "type" : [ "PublicationEvent" ], "location" : [ "Rockford, Illinois :" ], "publishedBy" : [ "The International Organization for the Family" ], + "publicationHistory" : "Began with volume 30, number 3 (2016).", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#a", "label" : "jährlich" } ] + }, { + "type" : [ "PublicationEvent" ], + "location" : [ "Rockford, IL :" ], + "publishedBy" : [ "Howard Center for Family, Religion & Society" ] } ], "describedBy" : { "id" : "http://lobid.org/resources/99371107766906441", diff --git a/src/test/resources/alma-fix/99371147104906441.json b/src/test/resources/alma-fix/99371147104906441.json index 715e0480f..61ded17a8 100644 --- a/src/test/resources/alma-fix/99371147104906441.json +++ b/src/test/resources/alma-fix/99371147104906441.json @@ -6,11 +6,11 @@ "title" : "Information & media", "alternativeTitle" : [ "Information and media" ], "publication" : [ { - "publicationHistory" : "Began with: Vol. 91 (2021).", "startDate" : "2021", "type" : [ "PublicationEvent" ], "location" : [ "Vilnius :" ], "publishedBy" : [ "Vilnius University Press" ], + "publicationHistory" : "Began with: Vol. 91 (2021).", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#f", "label" : "halbjährlich" diff --git a/src/test/resources/alma-fix/99371981001306441.json b/src/test/resources/alma-fix/99371981001306441.json index 780cd9171..fbfcd5d5c 100644 --- a/src/test/resources/alma-fix/99371981001306441.json +++ b/src/test/resources/alma-fix/99371981001306441.json @@ -9,11 +9,11 @@ "title" : "Smart grids and sustainable energy", "alternativeTitle" : [ "Technology and economics of smart grids and sustainable energy ( Abweichender Titel in Volume 8, issue 1 (March 2023) teils )" ], "publication" : [ { - "publicationHistory" : "Volume 8, issue 1 (March 2023)-", "startDate" : "2023", "type" : [ "PublicationEvent" ], "location" : [ "Singapore" ], "publishedBy" : [ "Springer Nature Singapore" ], + "publicationHistory" : "Volume 8, issue 1 (March 2023)-", "frequency" : [ { "id" : "http://marc21rdf.info/terms/continuingfre#z", "label" : "unregelmäßig oder sonstige Erscheinungsfrequenz" From 549db600a1d5c67ba03bc8ccb0ec12967045fcb6 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Thu, 7 Sep 2023 11:39:45 +0200 Subject: [PATCH 4/6] Add some documentation #1830 and #1886 --- src/main/resources/alma/fix/titleRelatedFields.fix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/alma/fix/titleRelatedFields.fix b/src/main/resources/alma/fix/titleRelatedFields.fix index c211f1fa1..d53e5ea70 100644 --- a/src/main/resources/alma/fix/titleRelatedFields.fix +++ b/src/main/resources/alma/fix/titleRelatedFields.fix @@ -221,6 +221,7 @@ end # 264 - Production, Publication, Distribution, Manufacture, and Copyright Notice (R) - Subfield: $a (R), $b (R), $c (R) # 008,18 for frequency # 515 - Numbering Peculiarities Note (R) +# Prefer 264 over 260 since it can create duplicate info and 260 is discontinued in RDA. set_array("publication[]") if exists("264[ 23][ 1]") @@ -233,6 +234,8 @@ else call_macro("publication",field:"260 [ 1]") # # - Not applicable/No information provided/Earliest end +# Only add additional publication info to the first publication-object since it is the latest. + if exists("publication[].$first") copy_field("362??.a","publication[].$first.publicationHistory") set_array("publication[].$first.frequency[]") From 204bc3628b85831bd3a833f836f07e697865b55b Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 19 Sep 2023 14:55:44 +0200 Subject: [PATCH 5/6] Add fallback for some publication info #1830 --- .../resources/alma/fix/titleRelatedFields.fix | 22 +++++++++++++++++++ .../resources/alma-fix/99370763882706441.json | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/main/resources/alma/fix/titleRelatedFields.fix b/src/main/resources/alma/fix/titleRelatedFields.fix index d53e5ea70..3dfc88ba1 100644 --- a/src/main/resources/alma/fix/titleRelatedFields.fix +++ b/src/main/resources/alma/fix/titleRelatedFields.fix @@ -263,6 +263,28 @@ if exists("publication[].$first") replace_all("publication[].$first.startDate","^.*saṃ. \\d{4}=(\\d{4}).*Chr.*","$1") end end + # Add fallbacks for missing publication dates and other publication info. + do list(path:"260[ 3][ 1]", "var":"$i") + do list(path: "$i.c", "var":"$j") + replace_all("$j", "\\[|\\]|ca. |c ", "") + unless exists("publication[].$first.startDate") + if any_match("$j",".*?([01]\\d{3}|20\\d{2}).*") + paste("publication[].$first.startDate", "$j") + end + end + unless exists("publication[].$first.endDate") + if any_match("$j",".*-[ ]?([01]\\d{3}|20\\d{2})$") + paste("publication[].$last.endDate", "$j") + end + end + unless exists("publication[].$first.location[].1") + copy_field("$i.a", "publication[].$first.location[].$append") + end + unless exists("publication[].$first.publishedBy[].1") + copy_field("$i.b", "publication[].$first.publishedBy[].$append") + end + end + end end diff --git a/src/test/resources/alma-fix/99370763882706441.json b/src/test/resources/alma-fix/99370763882706441.json index 90593e060..177a01303 100644 --- a/src/test/resources/alma-fix/99370763882706441.json +++ b/src/test/resources/alma-fix/99370763882706441.json @@ -6,7 +6,9 @@ "title" : "Lexicology, Semantics and Lexicography : Selected Papers from the Fourth G.L. Brook Symposium, Manchester, August 1998", "publication" : [ { "type" : [ "PublicationEvent" ], - "publishedBy" : [ "John Benjamins Publishing Company" ] + "location" : [ "Philadelphia, PA, USA" ], + "publishedBy" : [ "John Benjamins Publishing Company" ], + "startDate" : "2000" } ], "describedBy" : { "id" : "http://lobid.org/resources/99370763882706441", From 6f176fcb920323b7f900026e29345b9c37c1e1cf Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 19 Sep 2023 15:02:23 +0200 Subject: [PATCH 6/6] Add additional fallback for publication date #1886 Suggested by https://github.com/hbz/lobid-resources/issues/1806#issue-1771114702 --- .../resources/alma/fix/titleRelatedFields.fix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/resources/alma/fix/titleRelatedFields.fix b/src/main/resources/alma/fix/titleRelatedFields.fix index 3dfc88ba1..5e1da3911 100644 --- a/src/main/resources/alma/fix/titleRelatedFields.fix +++ b/src/main/resources/alma/fix/titleRelatedFields.fix @@ -285,6 +285,22 @@ if exists("publication[].$first") end end end + unless exists("publication[].$first.startDate[]") + if any_match("008","^.{6}[brestikm](\\d{4}).*$") + copy_field("008","@008startDate") + replace_all("@008startDate","^.{7}(\\d{4}).*$","$1") + copy_field("@008startDate","publication[].$first.startDate") + end + end + unless exists("publication[].$first.endDate[]") + if any_match("008","^.{6}[km]\\d{4}(\\d{4}).*$") + copy_field("008","@008endDate") + replace_all("@008endDate","^.{11}(\\d{4}).*$","$1") + unless any_equal("@008endDate","9999") + copy_field("@008endDate","publication[].$first.endDate") + end + end + end end