Skip to content

Commit

Permalink
Add DBIS refrence #1864
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Aug 20, 2024
1 parent 4935759 commit ddbcff4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
18 changes: 18 additions & 0 deletions src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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

Expand Down
8 changes: 6 additions & 2 deletions src/test/resources/alma-fix/990133067580206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit ddbcff4

Please sign in to comment.