diff --git a/src/main/resources/alma/fix/mediumAndType.fix b/src/main/resources/alma/fix/mediumAndType.fix index 45581e1b5..7dc4b580f 100644 --- a/src/main/resources/alma/fix/mediumAndType.fix +++ b/src/main/resources/alma/fix/mediumAndType.fix @@ -413,6 +413,12 @@ elsif any_equal("@PORtype","DATABASE") add_field("type[].$append","Database") elsif any_match("090 .g", "a") add_field("type[].$append","Database") +else + do list(path: "856??", "var": "$i") + if any_equal("$i.x", "DBIS") + add_field("type[].$append","Database") + end + end end # type: "EditedVolume" diff --git a/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix b/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix index 42b3c18e1..189a6f519 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[].$append.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..517c2e7d7 100644 --- a/src/test/resources/alma-fix/990133067580206441.json +++ b/src/test/resources/alma-fix/990133067580206441.json @@ -81,6 +81,9 @@ }, { "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 +108,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",