Skip to content

Commit

Permalink
Merge #1984 from remote-tracking branch 'origin/1983-newCulturegraphUrl'
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Apr 16, 2024
2 parents 21608bd + 51e53bb commit 91eecd7
Show file tree
Hide file tree
Showing 149 changed files with 240 additions and 113 deletions.
11 changes: 4 additions & 7 deletions src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ set_array("sameAs[]")


# 035 - System Control Number (R) - Subfield: $a (NR)
do list(path:"035 ", "var":"$i")
if all_match("$i.a", "^\\(DE-605\\)(.*)$")
copy_field("$i.a", "sameAs[].$append.id")
replace_all("sameAs[].$last.id", "^\\(DE-605\\)(.*)$","http://hub.culturegraph.org/resource/HBZ-$1")
if any_match("almaMmsId","^.*6441$")
paste("sameAs[].$append.id", "~https://hub.culturegraph.org/resource/(DE-605)","almaMmsId",join_char:"")
add_field("sameAs[].$last.label","Culturegraph Ressource")
end
end

# oclc
Expand Down Expand Up @@ -278,7 +275,7 @@ do list(path: "8564?", "var":"$i")
if all_match("$i.x", "Verlag|Agentur|Digitalisierung")
copy_field("$i.x", "fulltextOnline[].$append.label")
copy_field("$i.u", "fulltextOnline[].$last.id")
end
end
end
if all_match("$i.x", ".*(Archivierte Online|EZB|Online-Ausg|Resolving-System|Volltext).*")
copy_field("$i.x", "fulltextOnline[].$append.label")
Expand All @@ -289,7 +286,7 @@ do list(path: "8564?", "var":"$i")
copy_field("$i.u", "fulltextOnline[].$last.id")
end
end
end
end
end

# doi for fullTextOnline and sameAs
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT000161712",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990001412590206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/600913146",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990011470300206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT003109553",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990011470300206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/230434370",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990014830510206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT003864492",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990014830510206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1067416031",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990016782920206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT004285445",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990016782920206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1068203015",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990021367710206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT005207972",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990021367710206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/265495256",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990021974470206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT005271161",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990021974470206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1067969357",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990026405480206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT006813395",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990026405480206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/722126366",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990030574430206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT007847893",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990030574430206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1071256649",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990033263300206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT008389117",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990033263300206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1068461604",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990035016180206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT008733617",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990035016180206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1072809401",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990041403870206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT009965981",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990041403870206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1070982209",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990050000600206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT006855611",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990050000600206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/961364901",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990051552280206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT009719670",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990051552280206441",
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990051708340206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT009976241",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990051708340206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1072570332",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990052965140206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT002529477",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990052965140206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/183288969",
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990053976760206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990053976760206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1367315083",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990054215550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990054215550206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1367306405",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990054301770206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990054301770206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/183206499",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990054345550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990054345550206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/985104571",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990055981810206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990055981810206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/724554237",
"label" : "OCLC Ressource"
}, {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990058434730206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT000893437",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990058434730206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/890101063",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990058567920206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT000909138",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990058567920206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/263560195",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990059571560206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT001039253",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990059571560206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/916023707",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990063549080206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT003538502",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990063549080206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/243446801",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990065341720206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT004764408",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990065341720206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1070400832",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990075429930206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT000944190",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990075429930206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1067460009",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990075538650206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT003184116",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990075538650206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1072108532",
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990103770440206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990103770440206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/84900090",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990103899140206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990103899140206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1367753905",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990104908070206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990104908070206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1367906311",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990108740950206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990108740950206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/313580279",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990108873860206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990108873860206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1368120672",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990108874370206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990108874370206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1368065947",
"label" : "OCLC Ressource"
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990109712970206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990109712970206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/614914125",
"label" : "OCLC Ressource"
}, {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990110509950206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-BT000003404",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990110509950206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://nwbib.de/990110509950206441#!",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990110714900206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-BT000024700",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990110714900206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://nwbib.de/990110714900206441#!",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990110881770206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-BT000041593",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990110881770206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://nwbib.de/990110881770206441#!",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990112067120206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
} ]
},
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-BT000160670",
"id" : "https://hub.culturegraph.org/resource/(DE-605)990112067120206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1067304352",
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990113537330206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990113537330206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/183251724",
"label" : "OCLC Ressource"
}, {
Expand Down
Loading

0 comments on commit 91eecd7

Please sign in to comment.