diff --git a/alephino/config/main/T_4243.json b/alephino/config/main/T_4243.json new file mode 100644 index 0000000..ec0465a --- /dev/null +++ b/alephino/config/main/T_4243.json @@ -0,0 +1,35 @@ +[ + { + "op": "core/column-addition", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|527", + "expression": "isBlank(value)", + "columnName": "M|527", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "baseColumnName": "M|527", + "expression": "grel:forEach(value.split('␟'), v, forNonBlank(filter(v.split('\u001f'), f, f[0] == 'p')[0].slice(1), x, '\u001fi' + x, '') + forNonBlank(filter(v.split('\u001f'), f, f[0] == 'a')[0].slice(1), x, '\u001fa' + x.replace('¬','').replace(/^:\\s?/,''), '')).join('␟')", + "onError": "set-to-blank", + "newColumnName": "4243", + "columnInsertIndex": 3, + "description": "Create column 4243" + } +] diff --git a/alephino/config/main/template.txt b/alephino/config/main/template.txt index b115f27..7599c2d 100644 --- a/alephino/config/main/template.txt +++ b/alephino/config/main/template.txt @@ -29,6 +29,7 @@ if(row.index - row.record.fromRowIndex == 0, + forNonBlank(cells['4063'].value, v, '034K ' + 'a' + v + '\n', '') + forNonBlank(cells['4026'].value, v, '035E ' + 'a' + v + '\n', '') + forNonBlank(cells['4204'].value, v, '037C ' + v + '\n', '') ++ forNonBlank(cells['4243'].value, v, forEach(v.split('␟'), x, '039I ' + x + '\n').join(''), '') + forNonBlank(cells['4212'].value, v, '046C ' + v + '\n', '') + forNonBlank(cells['4222'].value, v, '046M ' + 'a' + v + '\n', '') ,'')