Skip to content

Commit

Permalink
Merge #2056 from branch '1864-dbis' of github.com:hbz/lobid-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Aug 22, 2024
2 parents 4935759 + c168504 commit 448ee9a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/alma/fix/mediumAndType.fix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
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[].$append.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
7 changes: 7 additions & 0 deletions src/test/resources/alma-fix/990133067580206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit 448ee9a

Please sign in to comment.