ba-sachsen-pica/alephino/config/main/T_2003.json

95 lines
2.8 KiB
JSON

[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"baseColumnName": "M|IDN",
"expression": "grel:[forNonBlank(cells['M|087'].value, v, forEach(v.split('␟'), x, x + '\u001fSo').join('␟'), null), forNonBlank(cells['M|087b'].value, v, v + '\u001fSa', null), forNonBlank(cells['M|087o'].value, v, v + '\u001fSo', null)].join('␟')",
"onError": "set-to-blank",
"newColumnName": "2003",
"columnInsertIndex": 3,
"description": "Create column 2003"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"columnName": "2003",
"expression": "grel:value.replace('-','').replace('.','').replace(' ','').replace('=','')",
"onError": "keep-original",
"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('␟')"
}
]