Skip to content

Commit

Permalink
Fix array wild card #1864
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Aug 22, 2024
1 parent 5e01290 commit c168504
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end
do list(path: "8564?", "var":"$i")
if exists("$i.u")
if all_match("$i.x", ".*DBIS.*")
copy_field("$i.u", "sameAs[].$last.id")
copy_field("$i.u", "sameAs[].$append.id")
add_field("sameAs[].$last.label","DBIS-Ressource")
add_field("@dbis","DBIS-Ressource")
end
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/alma-fix/990133067580206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
}, {
"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"
Expand Down

0 comments on commit c168504

Please sign in to comment.