From 2484877df7012e47e9a195f052f2b63e05cf926f Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Tue, 25 Feb 2025 18:23:41 +0100 Subject: [PATCH] Restore inSeries -> isPartOf transformation for all types (RPB-256) --- conf/output/test-output-57.json | 7 +++++++ conf/output/test-output-85.json | 6 ++++++ conf/output/test-output-90.json | 6 ++++++ conf/output/test-output-91.json | 7 +++++++ conf/output/test-output-96.json | 7 +++++++ conf/rpb-titel-to-lobid.fix | 2 ++ 6 files changed, 35 insertions(+) diff --git a/conf/output/test-output-57.json b/conf/output/test-output-57.json index f2dcef2..294271c 100644 --- a/conf/output/test-output-57.json +++ b/conf/output/test-output-57.json @@ -1,6 +1,13 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "type" : [ "BibliographicResource", "Book" ], + "isPartOf" : [ { + "type" : [ "IsPartOfRelation" ], + "hasSuperordinate" : [ { + "label" : "Salto" + } ], + "numbering" : "[13]" + } ], "rpbId" : "929t112198", "id" : "https://lobid.org/resources/929t112198", "hbzId" : "HT015954631", diff --git a/conf/output/test-output-85.json b/conf/output/test-output-85.json index 17ac380..8453bbb 100644 --- a/conf/output/test-output-85.json +++ b/conf/output/test-output-85.json @@ -1,6 +1,12 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "type" : [ "BibliographicResource", "Book" ], + "isPartOf" : [ { + "type" : [ "IsPartOfRelation" ], + "hasSuperordinate" : [ { + "label" : "DuMont aktiv" + } ] + } ], "rpbId" : "929t160199", "id" : "https://lobid.org/resources/929t160199", "hbzId" : "HT018859168", diff --git a/conf/output/test-output-90.json b/conf/output/test-output-90.json index 1d4af78..10317f6 100644 --- a/conf/output/test-output-90.json +++ b/conf/output/test-output-90.json @@ -1,6 +1,12 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "type" : [ "BibliographicResource", "Book" ], + "isPartOf" : [ { + "type" : [ "IsPartOfRelation" ], + "hasSuperordinate" : [ { + "label" : "Beiträge zur Geschichte und Kultur der Stadt Wittlich" + } ] + } ], "rpbId" : "121t970621", "id" : "https://lobid.org/resources/121t970621", "isbn" : [ "3-9802913-8-3" ], diff --git a/conf/output/test-output-91.json b/conf/output/test-output-91.json index 7f444ca..e0a4178 100644 --- a/conf/output/test-output-91.json +++ b/conf/output/test-output-91.json @@ -1,6 +1,13 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "type" : [ "BibliographicResource", "MultiVolumeBook" ], + "isPartOf" : [ { + "type" : [ "IsPartOfRelation" ], + "hasSuperordinate" : [ { + "label" : "Bad Emser Hefte" + } ], + "numbering" : "..." + } ], "rpbId" : "929t163432", "id" : "https://lobid.org/resources/929t163432", "hbzId" : "HT003729454", diff --git a/conf/output/test-output-96.json b/conf/output/test-output-96.json index 606123c..3484184 100644 --- a/conf/output/test-output-96.json +++ b/conf/output/test-output-96.json @@ -1,6 +1,13 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "type" : [ "BibliographicResource", "Book" ], + "isPartOf" : [ { + "type" : [ "IsPartOfRelation" ], + "hasSuperordinate" : [ { + "label" : "Serie Musik" + } ], + "numbering" : "8309" + } ], "rpbId" : "107t110017", "id" : "https://lobid.org/resources/107t110017", "isbn" : [ "978-3-254-08309-8" ], diff --git a/conf/rpb-titel-to-lobid.fix b/conf/rpb-titel-to-lobid.fix index 1cb7e7d..0663f7b 100644 --- a/conf/rpb-titel-to-lobid.fix +++ b/conf/rpb-titel-to-lobid.fix @@ -71,6 +71,8 @@ if any_equal("type", "Band") copy_field("inSeries[].*", "isPartOf[].$append") # Strapi: inSeries[] (Gesamttitel) -> isPartOf copy_field("volumeIn", "isPartOf[].$append") # Strapi volumeIn (Bandangaben) -> isPartOf copy_field("f20u", "isPartOf[].$last.label") # label is in f20u +else + move_field("inSeries[]", "isPartOf[]") end # For all types: lobid structure