From a909aede5fe0b6fd1b9559c5325cbdc81fbe1146 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Thu, 31 Mar 2022 00:00:36 +0200 Subject: [PATCH] 4011 --- alephino/config/main/T_4011.json | 15 +++++++++++++++ alephino/config/main/template.txt | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 alephino/config/main/T_4011.json diff --git a/alephino/config/main/T_4011.json b/alephino/config/main/T_4011.json new file mode 100644 index 0000000..e19cca0 --- /dev/null +++ b/alephino/config/main/T_4011.json @@ -0,0 +1,15 @@ +[ + { + "op": "core/column-addition", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "baseColumnName": "M|369", + "expression": "grel:value", + "onError": "set-to-blank", + "newColumnName": "4011", + "columnInsertIndex": 3, + "description": "Create column 4011" + } +] diff --git a/alephino/config/main/template.txt b/alephino/config/main/template.txt index 0456384..b87b719 100644 --- a/alephino/config/main/template.txt +++ b/alephino/config/main/template.txt @@ -11,9 +11,10 @@ if(row.index - row.record.fromRowIndex == 0, + forNonBlank(cells['1700'].value, v, '019@ ' + forEach(v.split('‡'),x,'a' + x).join('') + '\n', '') + forNonBlank(cells['4000'].value, v, '021A ' + 'a' + v + '\n', '') + forNonBlank(cells['4002'].value, v, forEach(v.split('␟'), x, '021G ' + 'a' + x + '\n').join(''), '') ++ forNonBlank(cells['4011'].value, v, '021N ' + 'a' + v + '\n', '') + forNonBlank(cells['3210'].value, v, '022A/00 ' + 'a' + v + '\n', '') + forNonBlank(cells['3211'].value, v, '022A/01 ' + 'a' + v + '\n', '') -+ forNonBlank(cells['3260'].value, v, '027A ' + 'a' + v + '\n', '') ++ forNonBlank(cells['3260'].value, v, forEach(v.split('␟'), x, '027A ' + 'a' + x + '\n').join(''), '') + forNonBlank(cells['3000'].value, v, '028A ' + v + '\n', '') + forNonBlank(cells['3010'].value, v, forEach(v.split('␟'), x, '028C ' + x + '\n').join(''), '') + forNonBlank(cells['3100'].value, v, '029A ' + v + '\n', '')