ba-sachsen-pica/bibliotheca/config/main/4150-4160.json

69 lines
2.7 KiB
JSON

[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "ueber",
"expression": "isBlank(value)",
"columnName": "ueber",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"baseColumnName": "ueber",
"expression": "grel:with(value.cross('bibliotheca','id')[0], r, forNonBlank(r.cells['M|HST'].value, v, '\u001fa' + v, '') + forNonBlank(r.cells['M|HSTZU'].value, v, '\u001fd' + v, '') + forNonBlank(r.cells['M|VERFA'].value, v, '\u001fh' + v, '') + forNonBlank(cells['M|BANDB'].value, v, '\u001fl' + v.replace(/\\.$/,'').replace('(','').replace(')',''), forNonBlank(cells['M|BANDN'].value, v, '\u001fl' + v, '')))",
"onError": "set-to-blank",
"newColumnName": "4150",
"columnInsertIndex": 3,
"description": "Create column 4150"
},
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "ueber",
"expression": "isBlank(value)",
"columnName": "ueber",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"baseColumnName": "ueber",
"expression": "grel:with(value.cross('bibliotheca','id')[0], r, forNonBlank(r.cells['2199'].value, v, '\u001fX' + forNonBlank(cells['M|BANDN'].value, v, v, forNonBlank(cells['M|BANDB'].value, v, v.replace(/\\.$/,'').replace('(','').replace(')',''), forNonBlank(r.cells['M|HST'].value, v, v[0,2], ''))) + if(and(isBlank(cells['M|BANDB'].value), isBlank(cells['M|BANDN'].value), isBlank(cells['HST'].value)), forNonBlank(cells['M|AUFL'].value, v, v + '.' + forNonBlank(cells['1100a'].value, jahr, jahr, ''), forNonBlank(cells['1100a'].value, jahr, jahr, '')), forNonBlank(cells['M|AUFL'].value, v, '.' + forNonBlank(cells['1100a'].value, jahr, jahr, ''), '') ) + '\u001f7' + v, '') + forNonBlank(cells['M|BANDB'].value, v, '\u001fl' + v.replace(/\\.$/,'').replace('(','').replace(')',''), forNonBlank(cells['M|BANDN'].value, v, '\u001fl' + v, '')) )",
"onError": "set-to-blank",
"newColumnName": "4160",
"columnInsertIndex": 3,
"description": "Create column 4160"
}
]