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

192 lines
5.8 KiB
JSON

[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|IDN",
"expression": "isBlank(value)",
"columnName": "M|IDN",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"baseColumnName": "M|IDN",
"expression": "grel:[ forNonBlank(forEach(cells['M|410'].value.split(';'), v, '\u001fp' + v.trim()).join(''), x, x, '') + forNonBlank(forEach(cells['M|412'].value.split(';'), v, '\u001fn' + v.trim()).join(''), x, x, null), forNonBlank(forEach(cells['M|415'].value.split(';'), v, '\u001fp' + v.trim()).join(''), x, x, '') + forNonBlank(forEach(cells['M|417'].value.split(';'), v, '\u001fn' + v.trim()).join(''), x, x, null), forNonBlank(forEach(cells['M|418'].value.split('␟'), v, [ forEach(filter(v.split('\u001f'), f, f[0] == 'a'), sub, forEach(sub.split(';'), part, '\u001fp' + part.slice(1).trim()).join('')).join(''), forEach(filter(v.split('\u001f'), f, f[0] == 'g'), sub, forEach(sub.split(';'), part, '\u001fn' + part.slice(1).trim()).join('')).join('')\n, forEach(filter(v.split('\u001f'), f, f[0] == 'h'), sub, forEach(sub.split(';'), part, '\u001fh' + part.slice(1).trim()).join('')).join('') ].join('') ).join('␟'), x, x, null), forNonBlank(forEach(cells['M|419'].value.split('␟'), v, forEach(filter(v.split('\u001f'), f, 'ab'.contains(f[0])), sub, if(sub[0] == 'a', forEach(sub.slice(1).split(';'), a, '\u001fp' + a.trim()).join(''), '\u001fn' + sub.slice(1) )).join('')).join('␟'), x, x, null) ].join('␟')",
"onError": "set-to-blank",
"newColumnName": "4030",
"columnInsertIndex": 3,
"description": "Create column 4030"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|IDN",
"expression": "isBlank(value)",
"columnName": "M|IDN",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "4030",
"expression": "isBlank(value)",
"columnName": "4030",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "4030",
"expression": "grel:forEach(value.split('␟'), v, if(v.contains('\u001fp'), v, '\u001fp[Erscheinungsort nicht ermittelbar]' + v)).join('␟')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4030"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|IDN",
"expression": "isBlank(value)",
"columnName": "M|IDN",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "4030",
"expression": "isBlank(value)",
"columnName": "4030",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "4030",
"expression": "grel:forEach(value.split('␟'), v, if(v.contains('\u001fn'), v, v + '\u001fn[Verlag nicht ermittelbar]')).join('␟')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4030"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|IDN",
"expression": "isBlank(value)",
"columnName": "M|IDN",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "4030",
"expression": "isBlank(value)",
"columnName": "4030",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "4030",
"expression": "grel:'\u001fp[Erscheinungsort nicht ermittelbar]' + '\u001fn[Verlag nicht ermittelbar]'",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4030"
}
]