This commit is contained in:
Felix Lohmeier 2022-04-30 19:41:23 +02:00
parent 7e6878b7be
commit 6fe0c3fbea
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,35 @@
[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|552a",
"expression": "isBlank(value)",
"columnName": "M|552a",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"baseColumnName": "M|552a",
"expression": "grel:value.replace('DOI: ','').replace('DOI:','').replace('DOI','')",
"onError": "set-to-blank",
"newColumnName": "2053",
"columnInsertIndex": 3,
"description": "Create column 2053"
}
]

View File

@ -5,6 +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['2003'].value, v, forEach(v.split('␟'), x, '004P ' + '0' + x + '\n').join(''), '')
+ forNonBlank(cells['2053'].value, v, '004W ' + '0' + v + '\n', '')
+ forNonBlank(cells['2010'].value, v, forEach(v.split('␟'), x, '005A ' + x + '\n').join(''), '')
+ forNonBlank(cells['2199'].value, v, '006Y ' + '0' + v + '\n', '')
+ forNonBlank(cells['1500'].value, v, '010@ ' + forEach(v.split('‡'),x,'a' + x).join('') + '\n', '')