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() } }