diff --git a/whelktool/src/main/resources/bulk-change-scripts/removeTopicSubdivision.groovy b/whelktool/src/main/resources/bulk-change-scripts/removeTopicSubdivision.groovy index b0d802566b..be13b8bb10 100644 --- a/whelktool/src/main/resources/bulk-change-scripts/removeTopicSubdivision.groovy +++ b/whelktool/src/main/resources/bulk-change-scripts/removeTopicSubdivision.groovy @@ -11,11 +11,11 @@ import whelk.JsonLd import whelk.util.DocumentUtil import static whelk.JsonLd.ID_KEY +import static whelk.datatool.bulkchange.BulkJobDocument.ADD_KEY import static whelk.datatool.bulkchange.BulkJobDocument.DEPRECATE_KEY -import static whelk.datatool.bulkchange.BulkJobDocument.KEEP_KEY Map deprecate = parameters.get(DEPRECATE_KEY) -Map addLink = parameters.get(KEEP_KEY) +Map addLink = parameters.get(ADD_KEY) if (!deprecate) return