Skip to content

Commit

Permalink
Show error that the delete option in fix created an field, that shoul…
Browse files Browse the repository at this point in the history
…d not be there
  • Loading branch information
TobiasNx committed Sep 5, 2023
1 parent de6845c commit b54b8af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/alma/fix/subjects.fix
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ do list(path:"084??", "var":"$i")
add_field("subject[].$last.source.id","https://bartoc.org/en/node/20049")
end
copy_field("$j","subject[].$last.label")
lookup("subject[].$last.label", "dnbSachgruppen", delete:"true")
lookup("subject[].$last.label", "dnbSachgruppen")
elsif any_match("$j","\\d{2}")
add_field("subject[].$last.source.label","Systematik der DNB (bis 2003)")
add_field("subject[].$last.source.id","https://bartoc.org/en/node/18497")
Expand Down
3 changes: 1 addition & 2 deletions src/test/resources/alma-fix/991005935279706485.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@
"source" : {
"label" : "Systematik der DNB (bis 2003)",
"id" : "https://bartoc.org/en/node/18497"
},
"label" : "280"
}
}, {
"notation" : "17",
"type" : [ "Concept" ],
Expand Down

0 comments on commit b54b8af

Please sign in to comment.