diff --git a/conf/output/test-output-0.json b/conf/output/test-output-0.json index c6d736f..a9861af 100644 --- a/conf/output/test-output-0.json +++ b/conf/output/test-output-0.json @@ -3,7 +3,6 @@ "type" : [ "BibliographicResource", "Article" ], "rpbId" : "929t112200", "id" : "https://lobid.org/resources/929t112200", - "hbzId" : "CT003010348", "inCollection" : [ { "id" : "http://lobid.org/resources/HT013494180#!", "type" : [ "Collection" ], @@ -74,6 +73,9 @@ }, "type" : [ "Contribution" ] } ], + "containedIn" : [ { + "id" : "https://lobid.org/resources/CT003010348#!" + } ], "bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 456", "fulltextOnline" : [ { "id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-68551", diff --git a/conf/output/test-output-1.json b/conf/output/test-output-1.json index 72b4c80..4962005 100644 --- a/conf/output/test-output-1.json +++ b/conf/output/test-output-1.json @@ -3,7 +3,6 @@ "type" : [ "BibliographicResource", "Article" ], "rpbId" : "929t112201", "id" : "https://lobid.org/resources/929t112201", - "hbzId" : "CT003010543", "inCollection" : [ { "id" : "http://lobid.org/resources/HT013494180#!", "type" : [ "Collection" ], @@ -74,6 +73,9 @@ }, "type" : [ "Contribution" ] } ], + "containedIn" : [ { + "id" : "https://lobid.org/resources/CT003010543#!" + } ], "bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 380", "fulltextOnline" : [ { "id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-70507", diff --git a/conf/output/test-output-2.json b/conf/output/test-output-2.json index 868f614..14f681e 100644 --- a/conf/output/test-output-2.json +++ b/conf/output/test-output-2.json @@ -3,7 +3,6 @@ "type" : [ "BibliographicResource", "Article" ], "rpbId" : "929t112202", "id" : "https://lobid.org/resources/929t112202", - "hbzId" : "CT003010542", "inCollection" : [ { "id" : "http://lobid.org/resources/HT013494180#!", "type" : [ "Collection" ], @@ -74,6 +73,9 @@ }, "type" : [ "Contribution" ] } ], + "containedIn" : [ { + "id" : "https://lobid.org/resources/CT003010542#!" + } ], "bibliographicCitation" : "Bertius, Petrus : P. Bertii Tabularum geographicarum contractarum libri septem; 378", "fulltextOnline" : [ { "id" : "https://nbn-resolving.org/urn:nbn:de:hbz:061:1-70495", diff --git a/conf/output/test-output-3.json b/conf/output/test-output-3.json index 0cfa43a..7e19180 100644 --- a/conf/output/test-output-3.json +++ b/conf/output/test-output-3.json @@ -29,7 +29,7 @@ } }, { "type" : [ "ComplexSubject" ], - "label" : "Rethel, Alfred / 1816-1859 | Illustration | Lithografie | Stolterfoth, Adelheid ¬von¬ / 1800-1875 / Rheinischer Sagenkreis | Pressendruck", + "label" : "Rethel, Alfred / 1816-1859 | Illustration | Lithografie | Stolterfoth, Adelheid von / 1800-1875 / Rheinischer Sagenkreis | Pressendruck", "componentList" : [ { "id" : "https://d-nb.info/gnd/118744615", "label" : "Rethel, Alfred / 1816-1859", @@ -53,7 +53,7 @@ } }, { "id" : "https://d-nb.info/gnd/7743324-5", - "label" : "Stolterfoth, Adelheid ¬von¬ / 1800-1875 / Rheinischer Sagenkreis", + "label" : "Stolterfoth, Adelheid von / 1800-1875 / Rheinischer Sagenkreis", "source" : { "id" : "https://d-nb.info/gnd/7749153-1", "label" : "Gemeinsame Normdatei (GND)" @@ -79,7 +79,7 @@ "contribution" : [ { "agent" : { "id" : "https://d-nb.info/gnd/116002468", - "label" : "Stolterfoth, Adelheid ¬von¬ / 1800-1875", + "label" : "Stolterfoth, Adelheid von / 1800-1875", "type" : [ "Person" ] }, "role" : { diff --git a/conf/output/test-output-39.json b/conf/output/test-output-39.json index 77bbf03..b9f0d45 100644 --- a/conf/output/test-output-39.json +++ b/conf/output/test-output-39.json @@ -62,7 +62,7 @@ "contribution" : [ { "agent" : { "id" : "https://d-nb.info/gnd/1033772-6", - "label" : "Staatliche Vogelschutzwarte für Hessen, Rheinland-Pfalz und Saarland / Frankfurt, Main", + "label" : "Staatliche Vogelschutzwarte für Hessen, Rheinland-Pfalz und Saarland", "type" : [ "CorporateBody" ] }, "role" : { diff --git a/conf/output/test-output-4.json b/conf/output/test-output-4.json index f8c746d..ca967da 100644 --- a/conf/output/test-output-4.json +++ b/conf/output/test-output-4.json @@ -29,7 +29,7 @@ } }, { "type" : [ "ComplexSubject" ], - "label" : "Rethel, Alfred / 1816-1859 | Illustration | Lithografie | Stolterfoth, Adelheid ¬von¬ / 1800-1875 / Rheinischer Sagenkreis", + "label" : "Rethel, Alfred / 1816-1859 | Illustration | Lithografie | Stolterfoth, Adelheid von / 1800-1875 / Rheinischer Sagenkreis", "componentList" : [ { "id" : "https://d-nb.info/gnd/118744615", "label" : "Rethel, Alfred / 1816-1859", @@ -53,7 +53,7 @@ } }, { "id" : "https://d-nb.info/gnd/7743324-5", - "label" : "Stolterfoth, Adelheid ¬von¬ / 1800-1875 / Rheinischer Sagenkreis", + "label" : "Stolterfoth, Adelheid von / 1800-1875 / Rheinischer Sagenkreis", "source" : { "id" : "https://d-nb.info/gnd/7749153-1", "label" : "Gemeinsame Normdatei (GND)" @@ -72,7 +72,7 @@ "contribution" : [ { "agent" : { "id" : "https://d-nb.info/gnd/116002468", - "label" : "Stolterfoth, Adelheid ¬von¬ / 1800-1875", + "label" : "Stolterfoth, Adelheid von / 1800-1875", "type" : [ "Person" ] }, "role" : { diff --git a/conf/output/test-output-5.json b/conf/output/test-output-5.json index de7c828..73c3a6f 100644 --- a/conf/output/test-output-5.json +++ b/conf/output/test-output-5.json @@ -72,7 +72,7 @@ "contribution" : [ { "agent" : { "id" : "http://rpb.lobid.org/sw/00Pn01k18192455a", - "label" : "Reumont, Alfred ¬von¬", + "label" : "Reumont, Alfred von", "type" : [ "Person" ] }, "role" : { diff --git a/conf/output/test-output-81.json b/conf/output/test-output-81.json index bab0ae8..d462d64 100644 --- a/conf/output/test-output-81.json +++ b/conf/output/test-output-81.json @@ -87,7 +87,7 @@ }, { "agent" : { "id" : "http://rpb.lobid.org/sw/00Pn93k0040c", - "label" : "Wijnpersse, Hildegard ¬van de¬", + "label" : "Wijnpersse, Hildegard van de", "type" : [ "Person" ] }, "role" : { diff --git a/conf/output/test-output-9.json b/conf/output/test-output-9.json index aae6ae4..454a24c 100644 --- a/conf/output/test-output-9.json +++ b/conf/output/test-output-9.json @@ -71,7 +71,7 @@ "contribution" : [ { "agent" : { "id" : "http://rpb.lobid.org/sw/00Pn01k18192455a", - "label" : "Reumont, Alfred ¬von¬", + "label" : "Reumont, Alfred von", "type" : [ "Person" ] }, "role" : { diff --git a/conf/rpb-titel-to-lobid.fix b/conf/rpb-titel-to-lobid.fix index 97be0a6..ee7138c 100644 --- a/conf/rpb-titel-to-lobid.fix +++ b/conf/rpb-titel-to-lobid.fix @@ -357,6 +357,16 @@ do list_as(citation: "bibliographicCitation[]") move_field("fullLabel", "bibliographicCitation.$append") end +# containedIn - For articles we should move hbzId of parent records to containedIn since they are not the article records hbzId + +if any_equal("type[]", "Article") + if exists("hbzId") + paste("containedIn[].$append.id","~https://lobid.org/resources/","hbzId","~#!", join_char:"") + remove_field("hbzId") + end +end + + uniq("containedIn[]") join_field("bibliographicCitation", "; ")