Skip to content

Commit 58dd0f4

Browse files
committed
Add hasItem.id and retain items in merged hebis records (RPB-225)
1 parent 49064c5 commit 58dd0f4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/controllers/nwbib/Application.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,9 +1072,6 @@ private static JsonNode mergeRecords(JsonNode transformedJson, JsonNode lobidJso
10721072
: transformedObject;
10731073
lobidMap.put(key, values);
10741074
});
1075-
if(transformedJson.has("hebisId")) {
1076-
lobidMap.remove("hasItem"); // temp: https://github.com/hbz/rpb/pull/105#discussion_r2022907781
1077-
}
10781075
return Json.toJson(lobidMap);
10791076
}
10801077

conf/hebisMarc2lobid-transformation/fix/item.fix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ do list(path:"924??", "var": "$i")
77
copy_field("$i.g", "hasItem[].$last.callNumber")
88
add_field("hasItem[].$last.heldBy.id","http://lobid.org/organisations/DE-36#!")
99
add_field("hasItem[].$last.heldBy.label","Wissenschaftliche Stadtbibliothek Mainz")
10-
paste("holding.id","~http://lobid.org/items/", "~WASMUSSHIERHIN:DE-36:","$i.g","~#!",join_char:"") # Checken ob 001 als Item Id genutzt werden soll.
10+
uri_encode("$i.g")
11+
paste("hasItem[].$last.id","~http://lobid.org/items/","001","~:DE-36:","$i.g","~#!",join_char:"")
1112
end
1213
end

0 commit comments

Comments
 (0)