From 7cc1f8ecd26ca1489b0b92f716695ef985e1614d Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Mon, 10 Aug 2020 15:47:03 +0200 Subject: [PATCH] =?UTF-8?q?K=C3=BCrzel=20aus=20Dateiname=20und=20f=C3=BCr?= =?UTF-8?q?=20Dresden=20nachrangig=20aus=20E|ZWGST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/02-bibliotheca-main.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/02-bibliotheca-main.sh b/tasks/02-bibliotheca-main.sh index 2bc6dae..18258ad 100755 --- a/tasks/02-bibliotheca-main.sh +++ b/tasks/02-bibliotheca-main.sh @@ -393,8 +393,8 @@ if curl -fs \ "facets": [], "mode": "row-based" }, - "baseColumnName": "E|ZWGST", - "expression": "grel:value.replace('BB','Brt 1').replace('BZ','Bn 3').replace('DD','D 161').replace('EH','D 275').replace('GC','Gla 1').replace('PL','Pl 11')", + "baseColumnName": "File", + "expression": "grel:with(if(value=='DD',forNonBlank(cells['E|ZWGST'].value,v,v,value),value),x,x.replace('BB','Brt 1').replace('BZ','Bn 3').replace('DD','D 161').replace('EH','D 275').replace('GC','Gla 1').replace('PL','Pl 11'))", "onError": "set-to-blank", "newColumnName": "7100B", "columnInsertIndex": 3 @@ -424,8 +424,8 @@ if curl -fs \ "facets": [], "mode": "row-based" }, - "baseColumnName": "E|ZWGST", - "expression": "grel:value", + "baseColumnName": "File", + "expression": "grel:if(value=='DD',forNonBlank(cells['E|ZWGST'].value,v,v,value),value)", "onError": "set-to-blank", "newColumnName": "7100f", "columnInsertIndex": 3 @@ -549,8 +549,8 @@ if curl -fs \ "facets": [], "mode": "row-based" }, - "baseColumnName": "E|ZWGST", - "expression": "grel:value.toLowercase()", + "baseColumnName": "File", + "expression": "grel:with(if(value=='DD',forNonBlank(cells['E|ZWGST'].value,v,v,value),value),x,x.toLowercase())", "onError": "set-to-blank", "newColumnName": "E0XXb", "columnInsertIndex": 3