From ea7368e0fa7613e3c2e7b4acf555e0d1e317df35 Mon Sep 17 00:00:00 2001 From: kwahlin Date: Mon, 20 Nov 2023 14:04:31 +0100 Subject: [PATCH] Improve naming --- .../se/kb/libris/mergeworks/compare/Classification.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/librisworks/src/main/groovy/se/kb/libris/mergeworks/compare/Classification.groovy b/librisworks/src/main/groovy/se/kb/libris/mergeworks/compare/Classification.groovy index 7a5c26e795..b1765aff58 100644 --- a/librisworks/src/main/groovy/se/kb/libris/mergeworks/compare/Classification.groovy +++ b/librisworks/src/main/groovy/se/kb/libris/mergeworks/compare/Classification.groovy @@ -80,10 +80,10 @@ class Classification extends StuffSet { def preferredDewey = findPreferredDewey(deweyOnMerged, allDewey) - deweyOnMerged.remove(preferredDewey) + def additionalDewey = deweyOnMerged - preferredDewey - mergedWork['classification'] = asList(mergedWork['classification']) - deweyOnMerged - mergedWork['additionalClassificationDdc'] = (asList(mergedWork['additionalClassificationDdc']) + deweyOnMerged).unique() + mergedWork['classification'] = asList(mergedWork['classification']) - additionalDewey + mergedWork['additionalClassificationDdc'] = (asList(mergedWork['additionalClassificationDdc']) + additionalDewey).unique() } }