From 95bed397e7fa9ed68c4a849655694d850653cecc Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Mon, 1 Mar 2021 00:55:10 +0100 Subject: [PATCH] 2000 ISBN verfeinert --- bibliotheca/config/main/2000.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibliotheca/config/main/2000.json b/bibliotheca/config/main/2000.json index 576d8af..65d7bbd 100644 --- a/bibliotheca/config/main/2000.json +++ b/bibliotheca/config/main/2000.json @@ -6,7 +6,7 @@ "mode": "record-based" }, "baseColumnName": "M|ISBN", - "expression": "grel:[ forNonBlank(cells['M|ISBN'].value,v,if(isNumeric(v[0]),v,null),null), forNonBlank(cells['M|ISBN2'].value,v,if(isNumeric(v[0]),v,null),null) ].uniques().join('␟').replace('-','').toUppercase()", + "expression": "grel:[ forNonBlank(cells['M|ISBN'].value.replace('-',''),v,if(and(isNumeric(v), or(v.length() == 10, v.length() == 13)), v, null), null), forNonBlank(cells['M|ISBN2'].value.replace('-',''),v,if(and(isNumeric(v), or(v.length() == 10, v.length() == 13)), v, null), null) ].uniques().join('␟').toUppercase()", "onError": "set-to-blank", "newColumnName": "2000", "columnInsertIndex": 3