From d71a7924d25ab8424b592353c158db55e27700ca Mon Sep 17 00:00:00 2001 From: Petra Maier Date: Wed, 20 Dec 2023 16:06:19 +0100 Subject: [PATCH] Add field f85 as isPartOf (RPB-49) --- conf/output/test-output-24.json | 7 +++++++ conf/output/test-output-29.json | 6 ++++++ conf/output/test-output-57.json | 7 +++++++ conf/rpb-titel-to-lobid.fix | 13 +++++++++++++ 4 files changed, 33 insertions(+) diff --git a/conf/output/test-output-24.json b/conf/output/test-output-24.json index 1819ec83..4f22a117 100644 --- a/conf/output/test-output-24.json +++ b/conf/output/test-output-24.json @@ -9,6 +9,13 @@ "label" : "Rheinland-Pfälzische Bibliographie" } ], "title" : "Das Hambacher Schloß.", + "isPartOf" : [ { + "type" : [ "IsPartOfRelation" ], + "hasSuperordinate" : [ { + "label" : "Kunst und Geschichte in Rheinland-Pfalz" + } ], + "numbering" : "82" + } ], "publication" : [ { "startDate" : "1982", "type" : [ "PublicationEvent" ] diff --git a/conf/output/test-output-29.json b/conf/output/test-output-29.json index 9f302644..cb7b244e 100644 --- a/conf/output/test-output-29.json +++ b/conf/output/test-output-29.json @@ -10,6 +10,12 @@ } ], "title" : "Um- und Ausbau des Hambacher Schlosses von 1979 bis 1982", "extent" : "Ill.", + "isPartOf" : [ { + "type" : [ "IsPartOfRelation" ], + "hasSuperordinate" : [ { + "label" : "150 Jahre Hambacher Fest : Festausgabe" + } ] + } ], "publication" : [ { "startDate" : "1982", "type" : [ "PublicationEvent" ] diff --git a/conf/output/test-output-57.json b/conf/output/test-output-57.json index f1d9a192..f56344f7 100644 --- a/conf/output/test-output-57.json +++ b/conf/output/test-output-57.json @@ -12,6 +12,13 @@ "title" : "Das Leben der Bilder oder die Kunst des Sehens", "extent" : "141 S. : Ill.", "note" : [ "Aus dem Engl. übers." ], + "isPartOf" : [ { + "type" : [ "IsPartOfRelation" ], + "hasSuperordinate" : [ { + "label" : "Salto" + } ], + "numbering" : "[13]" + } ], "responsibilityStatement" : [ "John Berger" ], "publication" : [ { "location" : [ "Berlin" ], diff --git a/conf/rpb-titel-to-lobid.fix b/conf/rpb-titel-to-lobid.fix index 8a4ee2ba..ff81cb20 100644 --- a/conf/rpb-titel-to-lobid.fix +++ b/conf/rpb-titel-to-lobid.fix @@ -96,6 +96,19 @@ do list(path:"f81[].*.f81_", "var": "$i") end uniq("note[]") +#-------- "series" ------- +if exists("f85?") + set_array("isPartOf[]") + set_array("isPartOf[].$append.type[]", "IsPartOfRelation") + set_array("isPartOf[].$last.hasSuperordinate[]") + if exists("f85_") + split_field("f85_"," ; ") + copy_field("f85_.1","isPartOf[].$last.hasSuperordinate[].$append.label") + copy_field("f85_.2", "isPartOf[].$last.numbering") + else + copy_field("f85?","isPartOf[].$last.hasSuperordinate[].$append.label") + end +end # ------- "medium" ------- # Dafür scheint es keine explizite Angabe zu geben.