diff --git a/alephino/config/main/T_4000.json b/alephino/config/main/T_4000.json new file mode 100644 index 0000000..e775039 --- /dev/null +++ b/alephino/config/main/T_4000.json @@ -0,0 +1,166 @@ +[ + { + "op": "core/column-addition", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "baseColumnName": "M|331", + "expression": "grel:value", + "onError": "set-to-blank", + "newColumnName": "4000", + "columnInsertIndex": 3, + "description": "Create column 4000" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|331", + "expression": "isBlank(value)", + "columnName": "M|331", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": true, + "l": "true" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "4000", + "expression": "grel:cells['M|331a'].value", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4000" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "columnName": "4000", + "expression": "grel:value + forNonBlank(cells['M|335'].value, v, '\u001fd' + v, '')", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4000" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "columnName": "4000", + "expression": "grel:value + forNonBlank(cells['M|333'].value, v, '\u001fh' + v, '')", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4000" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|333", + "expression": "isBlank(value)", + "columnName": "M|333", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": true, + "l": "true" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "4000", + "expression": "grel:value + forNonBlank(cells['M|359'].value, v, '\u001fh' + v, '')", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4000" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|333", + "expression": "isBlank(value)", + "columnName": "M|333", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "4000", + "expression": "grel:value + forNonBlank(cells['M|359'].value, v, ' ; ' + v, '')", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4000" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "columnName": "4000", + "expression": "grel:value.replace('¬', '')", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4000" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [], + "mode": "row-based" + }, + "columnName": "4000", + "expression": "grel:with(['a', 'das', 'dem', 'den', 'der', 'des', 'die', 'ein', 'eine', 'einem', 'einen', 'einer', 'eines', 'the'], x, if(inArray(x, value.split(' ')[0].toLowercase()), value.split(' ')[0] + ' @' + value.split(' ').slice(1).join(' '), value))", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 4000" + } +] diff --git a/alephino/config/main/template.txt b/alephino/config/main/template.txt index 6c725b3..2ffa2c2 100644 --- a/alephino/config/main/template.txt +++ b/alephino/config/main/template.txt @@ -9,6 +9,7 @@ if(row.index - row.record.fromRowIndex == 0, + forNonBlank(cells['1131'].value, v, forEach(v.split('␟'),x,'013D ' + '' + x + '\n').join(''), '') + forNonBlank(cells['1140'].value, v, '013H ' + 'a' + v + '\n', '') + 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['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', '')