Skip to content

Commit

Permalink
Add mapping if lang is set to deutsch #2062
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Sep 13, 2024
1 parent 2aba6dc commit 32e9d33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/resources/alma/fix/otherFields.fix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ do list(path:"@language", "var":"$i")
if any_match("$i","[A-Za-z]{3}")
copy_field("$i", "language[].$append.id")
copy_field("$i", "language[].$last.label")
elsif any_match("$i","[dD]eutsch")
add_field("language[].$append.id","ger")
add_field("language[].$last.label","ger")
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/alma-fix/990126426530206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
"label" : "Deutsch"
} ],
"note" : [ "In: Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit." ],
"bibliographicCitation" : "Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit.",
"hasItem" : [ {
Expand Down

0 comments on commit 32e9d33

Please sign in to comment.