From ed506b0a6910996eaefaaa30b0c1ef9e9b63af76 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 5 Sep 2023 10:35:01 +0200 Subject: [PATCH] Delete delete option #1848 Workaround because of https://github.com/metafacture/metafacture-fix/issues/321 --- src/main/resources/alma/fix/subjects.fix | 2 +- src/test/resources/alma-fix/991005935279706485.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/resources/alma/fix/subjects.fix b/src/main/resources/alma/fix/subjects.fix index 157991ed7..c91d4eb0e 100644 --- a/src/main/resources/alma/fix/subjects.fix +++ b/src/main/resources/alma/fix/subjects.fix @@ -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") diff --git a/src/test/resources/alma-fix/991005935279706485.json b/src/test/resources/alma-fix/991005935279706485.json index fc7b828c4..058224510 100644 --- a/src/test/resources/alma-fix/991005935279706485.json +++ b/src/test/resources/alma-fix/991005935279706485.json @@ -161,8 +161,7 @@ "source" : { "label" : "Systematik der DNB (bis 2003)", "id" : "https://bartoc.org/en/node/18497" - }, - "label" : "280" + } }, { "notation" : "17", "type" : [ "Concept" ],