From ca6b788ed3208ed1241ab49ac9840c22bffc79f0 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Mon, 19 Oct 2020 15:09:01 +0200 Subject: [PATCH] CBS-Exemplardaten Bibliotheca v50 --- tasks/02-bibliotheca-main.sh | 18 ++++++------------ tasks/03-ba-sachsen.sh | 2 +- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/tasks/02-bibliotheca-main.sh b/tasks/02-bibliotheca-main.sh index 3c482f9..d10f25d 100755 --- a/tasks/02-bibliotheca-main.sh +++ b/tasks/02-bibliotheca-main.sh @@ -377,10 +377,10 @@ else fi echo -# ----------------------------------- 7100B ---------------------------------- # +# ----------------------------------- 7100j ---------------------------------- # # spec_B_E_15 -echo "Bibliothekssigel 7100B..." +echo "Abteilungsnummer 7100j..." if curl -fs \ --data project="${projects[$p]}" \ --data-urlencode "operations@-" \ @@ -394,9 +394,9 @@ if curl -fs \ "mode": "row-based" }, "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'))", + "expression": "grel:with(if(value=='DD',forNonBlank(cells['E|ZWGST'].value,v,v,value),value),x,x.replace('BB','0002').replace('BZ','0001').replace('DD','0003').replace('EH','0008').replace('GC','0004').replace('PL','0007'))", "onError": "set-to-blank", - "newColumnName": "7100B", + "newColumnName": "7100j", "columnInsertIndex": 3 } ] @@ -918,7 +918,7 @@ echo # ----------------------------------- 8515 ----------------------------------- # # spec_B_E_01 -# nur für Bautzen und Dresden +# nur für Bautzen echo "Ausleihhinweis 8515..." if curl -fs \ --data project="${projects[$p]}" \ @@ -939,12 +939,6 @@ if curl -fs \ "omitBlank": false, "omitError": false, "selection": [ - { - "v": { - "v": "DD", - "l": "DD" - } - }, { "v": { "v": "BZ", @@ -1797,7 +1791,7 @@ with( '1140', '2000', '4000', - '7100B', + '7100j', '7100f', '7100a', '7100d', diff --git a/tasks/03-ba-sachsen.sh b/tasks/03-ba-sachsen.sh index 2c14645..19eca89 100755 --- a/tasks/03-ba-sachsen.sh +++ b/tasks/03-ba-sachsen.sh @@ -542,7 +542,7 @@ if(row.index - row.record.fromRowIndex == 0, if(isNonBlank(cells['7100f'].value), with(with(rowIndex - row.record.fromRowIndex + 1, i, '00'[0,2-i.length()] + i),exnr, '208@/' + exnr + ' a' + cells['E0XX'].value + 'bn' + cells['E0XXb'].value + '\n' -+ '209A/' + exnr + ' B' + cells['7100B'].value + 'f' + cells['7100f'].value + forNonBlank(cells['7100a'].value, v, 'a' + v, '') + forNonBlank(cells['7100d'].value, v, 'd' + v, '') + 'x00' + '\n' ++ '209A/' + exnr + ' b4736' + 'j' + cells['7100j'].value + 'f' + cells['7100f'].value + forNonBlank(cells['7100a'].value, v, 'a' + v, '') + forNonBlank(cells['7100d'].value, v, 'd' + v, '') + 'x00' + '\n' + forNonBlank(cells['8011'].value, v, '209B/' + exnr + ' a' + v + 'x11' + '\n', '') + forNonBlank(cells['8100'].value, v, '209C/' + exnr + ' a' + v + '\n', '') + forNonBlank(cells['8200'].value, v, '209G/' + exnr + ' a' + v + '\n', '')