diff --git a/alephino/config/main/T_406X.json b/alephino/config/main/T_406X.json new file mode 100644 index 0000000..813577f --- /dev/null +++ b/alephino/config/main/T_406X.json @@ -0,0 +1,80 @@ +[ + { + "op": "core/column-addition", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "baseColumnName": "M|433", + "expression": "grel:coalesce(value, cells['M|433c'].value).split(' : ')[0].split('␟')[0]", + "onError": "set-to-blank", + "newColumnName": "4060", + "columnInsertIndex": 3, + "description": "Create column 4060" + }, + { + "op": "core/column-addition", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "baseColumnName": "M|433", + "expression": "grel:coalesce(value, cells['M|433c'].value).split(' : ')[1].split(' ; ')[0].split('␟')[0]", + "onError": "set-to-blank", + "newColumnName": "4061", + "columnInsertIndex": 3, + "description": "Create column 4061" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "columnName": "4061", + "expression": "grel:[ value, forEach(cells['M|434'].value.split('␟'), v, v).join('; ') ].join('; ')", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4061" + }, + { + "op": "core/column-addition", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "baseColumnName": "M|433", + "expression": "grel:coalesce(value, cells['M|433c'].value).split(' : ')[1].split(' ; ')[1].split('␟')[0]", + "onError": "set-to-blank", + "newColumnName": "4062", + "columnInsertIndex": 3, + "description": "Create column 4062" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "columnName": "4062", + "expression": "grel:coalesce(value, cells['M|435'].value)", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4062" + }, + { + "op": "core/column-addition", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "baseColumnName": "M|437", + "expression": "grel:value", + "onError": "set-to-blank", + "newColumnName": "4063", + "columnInsertIndex": 3, + "description": "Create column 4063" + } +] diff --git a/alephino/config/main/template.txt b/alephino/config/main/template.txt index 9da1960..5c4a7c0 100644 --- a/alephino/config/main/template.txt +++ b/alephino/config/main/template.txt @@ -22,6 +22,10 @@ if(row.index - row.record.fromRowIndex == 0, + forNonBlank(cells['3110'].value, v, forEach(v.split('␟'), x, '029F ' + x + '\n').join(''), '') + forNonBlank(cells['4025'].value, v, '031@ ' + 'a' + v + '\n', '') + forNonBlank(cells['4020'].value, v, '032@ ' + 'a' + v + '\n', '') ++ forNonBlank(cells['4060'].value, v, '034D ' + 'a' + v + '\n', '') ++ forNonBlank(cells['4061'].value, v, '034M ' + 'a' + v + '\n', '') ++ forNonBlank(cells['4062'].value, v, '034I ' + 'a' + v + '\n', '') ++ forNonBlank(cells['4063'].value, v, '034K ' + 'a' + v + '\n', '') + forNonBlank(cells['4026'].value, v, '035E ' + 'a' + v + '\n', '') + forNonBlank(cells['4030'].value, v, forEach(v.split('␟'), x, '033A ' + x + '\n').join(''), '') + forNonBlank(cells['4222'].value, v, '046M ' + 'a' + v + '\n', '')