From 0d5ddaf18de5501cb4418d07def70ac01d099db0 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Wed, 11 Nov 2020 15:50:51 +0100 Subject: [PATCH] 7100a Signatur --- tasks/02-alephino-main.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tasks/02-alephino-main.sh b/tasks/02-alephino-main.sh index afcdcb1..4428a7a 100755 --- a/tasks/02-alephino-main.sh +++ b/tasks/02-alephino-main.sh @@ -135,6 +135,37 @@ else fi echo +# ------------------------------------ 7100a ---------------------------------- # + +# spec_A_E_01 +echo "Signatur..." +if curl -fs \ + --data project="${projects[$p]}" \ + --data-urlencode "operations@-" \ + "${endpoint}/command/core/apply-operations$(refine_csrf)" > /dev/null \ + << "JSON" + [ + { + "op": "core/column-addition", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "baseColumnName": "E|100", + "expression": "grel:value.split('\u001f')[0].slice(1)", + "onError": "set-to-blank", + "newColumnName": "7100a", + "columnInsertIndex": 5 + } + ] +JSON +then + log "transformed ${p} (${projects[$p]})" +else + error "transform ${p} (${projects[$p]}) failed!" +fi +echo + # ================================== EXPORT ================================== # checkpoint "Export"; echo