Korrektur statt in 4160 bzw. 036D

This commit is contained in:
Felix Lohmeier 2021-03-29 11:17:20 +02:00
parent 9bde999979
commit 91da292c62
1 changed files with 2 additions and 2 deletions

View File

@ -59,10 +59,10 @@
"mode": "row-based" "mode": "row-based"
}, },
"baseColumnName": "ueber", "baseColumnName": "ueber",
"expression": "grel:with(value.cross('bibliotheca','id')[0], r, forNonBlank(r.cells['2199'].value, v, '\u001f7' + v, '') + forNonBlank(cells['M|BANDB'].value, v, '\u001fl' + v.replace(/\\.$/,'').replace('(','').replace(')',''), forNonBlank(cells['M|BANDN'].value, v, '\u001fl' + 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, ''), '') ))", "expression": "grel:with(value.cross('bibliotheca','id')[0], r, forNonBlank(r.cells['2199'].value, v, '\u001f7' + v, '') + forNonBlank(cells['M|BANDB'].value, v, '\u001fl' + v.replace(/\\.$/,'').replace('(','').replace(')',''), forNonBlank(cells['M|BANDN'].value, v, '\u001fl' + 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, ''), '') ))",
"onError": "set-to-blank", "onError": "set-to-blank",
"newColumnName": "4160", "newColumnName": "4160",
"columnInsertIndex": 3, "columnInsertIndex": 3,
"description": "Create column 4160 at index 3 based on column ueber using expression grel:with(value.cross('bibliotheca','id')[0], r, forNonBlank(r.cells['2199'].value, v, '\u001f7' + v, '') + forNonBlank(cells['M|BANDB'].value, v, '\u001fl' + v.replace(/\\.$/,'').replace('(','').replace(')',''), forNonBlank(cells['M|BANDN'].value, v, '\u001fl' + 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, ''), '') ))" "description": "Create column 4160 at index 3 based on column ueber using expression grel:with(value.cross('bibliotheca','id')[0], r, forNonBlank(r.cells['2199'].value, v, '\u001f7' + v, '') + forNonBlank(cells['M|BANDB'].value, v, '\u001fl' + v.replace(/\\.$/,'').replace('(','').replace(')',''), forNonBlank(cells['M|BANDN'].value, v, '\u001fl' + 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, ''), '') ))"
} }
] ]