Skip to content

Commit

Permalink
Simplify mapping #2021
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jun 4, 2024
1 parent c7cecef commit a4d344a
Show file tree
Hide file tree
Showing 151 changed files with 552 additions and 564 deletions.
18 changes: 3 additions & 15 deletions src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,11 @@ replace_all("related[].*.label","<<|>>","")
set_array("inCollection[]")

# hbz NZ
# digiBib hbz Vk

if any_equal("MBD .M", "49HBZ_NETWORK")
add_field("inCollection[].$append.id", "https://nrw.digibib.net/search/hbzvk/")
add_field("inCollection[].$last.label", "DigiBib hbz Verbundkatalog")
if any_match("POR .A", ".*")
add_field("@inNZ", "true")
else
Expand All @@ -392,21 +395,6 @@ if exists("@inNZ")
add_field("inCollection[].$last.label", "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone")
end

# digiBib hbz Vk

if any_equal("MBD .M", "49HBZ_NETWORK")
if any_match("POR .A", ".*")
add_field("@inDigibibVK", "true")
else
add_field("@inDigibibVK", "true")
end
end

if exists("@inDigibibVK")
add_field("inCollection[].$append.id", "https://nrw.digibib.net/search/hbzvk/")
add_field("inCollection[].$last.label", "Digibib hbz Verbundkatalog")
end

# zdb

if exists("zdbId")
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
"id" : "http://digitale-objekte.hbz-nrw.de/storage2/2019/04/06/file_4/8295425.pdf"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990011470300206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@
} ]
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"extent" : "XV, 607 S.",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990014830510206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990016782920206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@
"label" : "Tägliche Einspiel-Übungen"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"extent" : "80 S. + lose Beil.",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990021367710206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990021974470206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"exampleOfWork" : {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990026405480206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990030574430206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"exampleOfWork" : {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990033263300206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990035016180206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"subject" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990041403870206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"extent" : "104 Spielkt. : Ill. ; Begleith",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990050000600206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990051552280206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@
} ]
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990051708340206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@
"label" : "OCLC Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"hasItem" : [ {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990052965140206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
"label" : "NWBib-Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT014176012#!",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990053976760206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@
"id" : "http://lobid.org/resources/ZDB-1429221-X#!"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT014846970#!",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990054089950206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@
"label" : "Der Spiegel <Marburg>"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT014846970#!",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990054215550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@
"label" : "DNB-Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT014846970#!",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990054301770206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@
"label" : "DNB-Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT014846970#!",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990054345550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
"label" : "NWBib-Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT014846970#!",
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/alma-fix/990055981810206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@
"label" : "NWBib-Ressource"
} ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "Digibib hbz Verbundkatalog",
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT014846970#!",
Expand Down
Loading

0 comments on commit a4d344a

Please sign in to comment.