From fa5dfea2226cfda9893b816b50907a2fa1af074e Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Wed, 12 Aug 2020 17:52:44 +0200 Subject: [PATCH] fix 4000 und 8200 --- tasks/02-bibliotheca-main.sh | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/tasks/02-bibliotheca-main.sh b/tasks/02-bibliotheca-main.sh index c2a9a7e..61bccba 100755 --- a/tasks/02-bibliotheca-main.sh +++ b/tasks/02-bibliotheca-main.sh @@ -652,21 +652,11 @@ if curl -fs \ { "op": "core/column-addition", "engineConfig": { - "facets": [ - { - "type": "text", - "name": "M|HST", - "columnName": "M|HST", - "query": "¬", - "mode": "text", - "caseSensitive": false, - "invert": false - } - ], - "mode": "row-based" + "facets": [], + "mode": "record-based" }, "baseColumnName": "M|HST", - "expression": "grel:with(value.split('¬'), v, v[0].trim() + ' @' + v[1].trim())", + "expression": "grel:if(value.contains('¬'),with(value.split('¬'), v, v[0].trim() + ' @' + v[1].trim()),value)", "onError": "set-to-blank", "newColumnName": "4000", "columnInsertIndex": 3 @@ -693,17 +683,7 @@ if curl -fs \ { "op": "core/column-addition", "engineConfig": { - "facets": [ - { - "type": "text", - "name": "M|HST", - "columnName": "M|HST", - "query": "¬", - "mode": "text", - "caseSensitive": false, - "invert": false - } - ], + "facets": [], "mode": "row-based" }, "baseColumnName": "E|BARCO",