From 10824d41e8f9732b64bf465aafa253a7882cf31d Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Tue, 18 Aug 2020 14:46:28 +0200 Subject: [PATCH] Update spec_B_T_49: geclusterte Titel je eine 2199 --- tasks/03-ba-sachsen.sh | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/tasks/03-ba-sachsen.sh b/tasks/03-ba-sachsen.sh index 1a5e96c..c1c96b9 100755 --- a/tasks/03-ba-sachsen.sh +++ b/tasks/03-ba-sachsen.sh @@ -452,6 +452,38 @@ if curl -fs \ "mode": "row-based" }, "columnName": "id" + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "id", + "expression": "isBlank(value)", + "columnName": "id", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": true, + "l": "true" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "record-based" + }, + "columnName": "2199", + "expression": "grel:if(rowIndex - row.record.fromRowIndex == 0,row.record.cells[columnName].value.join('␟'),null)", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10 } ] JSON @@ -492,7 +524,7 @@ if(row.index - row.record.fromRowIndex == 0, + forNonBlank(cells['1100a'].value, v, '011@' + ' a' + v + ' n' + cells['1100n'].value + '\n', '') + forNonBlank(cells['1140'].value, v, '013H' + ' a' + v + '\n', '') + forNonBlank(cells['2000'].value, v, forEach(v.split('␟'),x,'004A' + ' 0' + x + '\n').join(''), '') -+ forNonBlank(cells['2199'].value, v, '006Y' + ' 0' + v + '\n', '') ++ forNonBlank(cells['2199'].value, v, forEach(v.split('␟'),x,'006Y' + ' 0' + x + '\n').join(''), '') + forNonBlank(cells['4000'].value, v, '021A' + ' a' + v + '\n', '') ,'') }}{{