diff --git a/alephino/config/main/T_2003.json b/alephino/config/main/T_2003.json index c315252..7f9d216 100644 --- a/alephino/config/main/T_2003.json +++ b/alephino/config/main/T_2003.json @@ -24,5 +24,71 @@ "repeat": false, "repeatCount": 10, "description": "Text transform on cells in column 2003" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "2003", + "expression": "isBlank(value)", + "columnName": "2003", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "2003", + "expression": "grel:forEach(value.split('␟'), v, '\u001f0' + v).join('␟')", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 2003 using expression grel:forEach(value.split('␟'), v, '\u001f0' + v).join('␟')" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "2003", + "expression": "isBlank(value)", + "columnName": "2003", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "2003", + "expression": "grel:forEach(value.split('␟'), v, forEach(v.split('\u001f'), x, x).sort().reverse().join('\u001f')).join('␟')", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10, + "description": "Text transform on cells in column 2003 using expression grel:forEach(value.split('␟'), v, forEach(v.split('\u001f'), x, x).sort().reverse().join('\u001f')).join('␟')" } ] diff --git a/alephino/config/main/template.txt b/alephino/config/main/template.txt index 2b0c8f4..cfda48d 100644 --- a/alephino/config/main/template.txt +++ b/alephino/config/main/template.txt @@ -5,7 +5,7 @@ if(row.index - row.record.fromRowIndex == 0, + 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, forEach(v.split('␟'), x, '004L ' + '0' + x + '\n').join(''), '') -+ forNonBlank(cells['2003'].value, v, forEach(v.split('␟'), x, '004P ' + '0' + x + '\n').join(''), '') ++ forNonBlank(cells['2003'].value, v, forEach(v.split('␟'), x, '004P ' + '' + x + '\n').join(''), '') + forNonBlank(cells['2053'].value, v, '004W ' + '0' + v + '\n', '') + forNonBlank(cells['2199'].value, v, '006Y ' + '0' + v + '\n', '') + forNonBlank(cells['1500'].value, v, '010@ ' + forEach(v.split('‡'),x,'a' + x).join('') + '\n', '') @@ -20,8 +20,8 @@ if(row.index - row.record.fromRowIndex == 0, + 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, 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['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 ' + 'a' + v + '\n', '') + forNonBlank(cells['3110'].value, v, forEach(v.split('␟'), x, '029F ' + 'a' + x + '\n').join(''), '') + forNonBlank(cells['4025'].value, v, '031@ ' + 'a' + v + '\n', '')