From ddbcff491283019d6aa3d4974ea605f69e8c752f Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 20 Aug 2024 14:58:18 +0200 Subject: [PATCH] Add DBIS refrence #1864 --- .../alma/fix/relatedRessourcesAndLinks.fix | 18 ++++++++++++++++++ .../resources/alma-fix/990133067580206441.json | 8 ++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix b/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix index 42b3c18e1..f961a5cd3 100644 --- a/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix +++ b/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix @@ -34,6 +34,18 @@ do list(path: "rpbId", "var": "$i") add_field("sameAs[].$last.label","RPB-Ressource") end +# DBIS +do list(path: "8564?", "var":"$i") + if exists("$i.u") + if all_match("$i.x", ".*DBIS.*") + copy_field("$i.u", "sameAs[].$last.id") + add_field("sameAs[].$last.label","DBIS-Ressource") + add_field("@dbis","DBIS-Ressource") + end + end +end + + # nwbib, see below inCollection nwbib @@ -513,6 +525,12 @@ do list(path:"084??", "var":"$i") end +# DBIS +if exists("@dbis") + add_field("inCollection[].$append.id", "https://dbis.ur.de/") + add_field("inCollection[].$last.label", "Datenbank-Infosystem (DBIS)") +end + # eResource package diff --git a/src/test/resources/alma-fix/990133067580206441.json b/src/test/resources/alma-fix/990133067580206441.json index 7167528b0..f404fc77a 100644 --- a/src/test/resources/alma-fix/990133067580206441.json +++ b/src/test/resources/alma-fix/990133067580206441.json @@ -79,8 +79,8 @@ "id" : "http://ld.zdb-services.de/resource/2163340-X", "label" : "ZDB-Ressource" }, { - "id" : "https://d-nb.info/026537966", - "label" : "DNB-Ressource" + "id" : "http://dbis.uni-regensburg.de/frontdoor.php?titel_id=1815", + "label" : "DBIS-Ressource" }, { "id" : "http://nwbib.de/990133067580206441#!", "label" : "NWBib-Ressource" @@ -105,6 +105,10 @@ "id" : "http://lobid.org/resources/HT014176012#!", "label" : "Nordrhein-Westfälische Bibliographie (NWBib)", "type" : [ "Collection" ] + }, { + "id" : "https://dbis.ur.de/", + "label" : "Datenbank-Infosystem (DBIS)", + "type" : [ "Collection" ] } ], "predecessor" : [ { "label" : "Nordrhein-westfälische Bibliographie",