From 8dbbe4471866d0902e9414953e11e507d08ae3bd Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Sat, 30 Apr 2022 20:27:15 +0200 Subject: [PATCH] 2201 --- alephino/config/main/T_2201.json | 35 +++++++++++++++++++++++++++++++ alephino/config/main/template.txt | 1 + 2 files changed, 36 insertions(+) create mode 100644 alephino/config/main/T_2201.json diff --git a/alephino/config/main/T_2201.json b/alephino/config/main/T_2201.json new file mode 100644 index 0000000..66866c9 --- /dev/null +++ b/alephino/config/main/T_2201.json @@ -0,0 +1,35 @@ +[ + { + "op": "core/column-addition", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|553a", + "expression": "isBlank(value)", + "columnName": "M|553a", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "baseColumnName": "M|553a", + "expression": "grel:value", + "onError": "set-to-blank", + "newColumnName": "2201", + "columnInsertIndex": 3, + "description": "Create column 2201" + } +] diff --git a/alephino/config/main/template.txt b/alephino/config/main/template.txt index d36fc6d..b3c534f 100644 --- a/alephino/config/main/template.txt +++ b/alephino/config/main/template.txt @@ -4,6 +4,7 @@ if(row.index - row.record.fromRowIndex == 0, + forNonBlank(cells['0500'].value, v, '002@ ' + '0' + v + '\n', '') + forNonBlank(cells['2000'].value, v, forEach(v.split('␟'), x, '004A ' + x + '\n').join(''), '') + forNonBlank(cells['2009'].value, v, forEach(v.split('␟'), x, '004D ' + x + '\n').join(''), '') ++ forNonBlank(cells['2201'].value, v, '004L ' + '0' + v + '\n', '') + forNonBlank(cells['2003'].value, v, forEach(v.split('␟'), x, '004P ' + '0' + x + '\n').join(''), '') + forNonBlank(cells['2053'].value, v, '004W ' + '0' + v + '\n', '') + forNonBlank(cells['2010'].value, v, forEach(v.split('␟'), x, '005A ' + x + '\n').join(''), '')