diff --git a/conf/output/test-output-rppd-lobid-47.json b/conf/output/test-output-rppd-lobid-47.json index 30355a1..f94cb79 100644 --- a/conf/output/test-output-rppd-lobid-47.json +++ b/conf/output/test-output-rppd-lobid-47.json @@ -1,6 +1,6 @@ { "@context" : "http://lobid.org/gnd/context.jsonld", - "id" : "https://d-nb.info/gnd/https://rppd.lobid.org/75fae589-07c0-4777-9362-91d1df4657f0", + "id" : "https://rppd.lobid.org/75fae589-07c0-4777-9362-91d1df4657f0", "rppdId" : "75fae589-07c0-4777-9362-91d1df4657f0", "type" : [ "AuthorityResource", "Person", "DifferentiatedPerson" ], "preferredName" : "Heinz, Klaus-Martin", diff --git a/conf/rppd-to-lobid.fix b/conf/rppd-to-lobid.fix index b1846f1..4b0dfcc 100644 --- a/conf/rppd-to-lobid.fix +++ b/conf/rppd-to-lobid.fix @@ -80,10 +80,12 @@ call_macro("move_here", field: "rppdId") #82b (GND-ID (R)) -> gndIdentifier # Kommentar Doku: ohne das vorangestellte Präfix (DE-588) -call_macro("move_here", field: "gndIdentifier") -unless all_contain("gndIdentifier", "Keine GND-Ansetzung") - copy_field("gndIdentifier","id") - prepend("id","https://d-nb.info/gnd/") +if exists("gndIdentifier") + call_macro("move_here", field: "gndIdentifier") + unless all_contain("gndIdentifier", "Keine GND-Ansetzung") + copy_field("gndIdentifier","id") + prepend("id","https://d-nb.info/gnd/") + end end set_array("sameAs[]")