Skip to content

Commit

Permalink
Handle missing gndIdentifier in rppd-to-lobid.fix (RPB-153)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Apr 10, 2024
1 parent bccf635 commit d5fa52f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/output/test-output-rppd-lobid-47.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 6 additions & 4 deletions conf/rppd-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -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[]")
Expand Down

0 comments on commit d5fa52f

Please sign in to comment.