CBS-Exemplardaten Bibliotheca v50

This commit is contained in:
Felix Lohmeier 2020-10-19 15:09:01 +02:00
parent 79a4bb04e3
commit ca6b788ed3
2 changed files with 7 additions and 13 deletions

View File

@ -377,10 +377,10 @@ else
fi fi
echo echo
# ----------------------------------- 7100B ---------------------------------- # # ----------------------------------- 7100j ---------------------------------- #
# spec_B_E_15 # spec_B_E_15
echo "Bibliothekssigel 7100B..." echo "Abteilungsnummer 7100j..."
if curl -fs \ if curl -fs \
--data project="${projects[$p]}" \ --data project="${projects[$p]}" \
--data-urlencode "operations@-" \ --data-urlencode "operations@-" \
@ -394,9 +394,9 @@ if curl -fs \
"mode": "row-based" "mode": "row-based"
}, },
"baseColumnName": "File", "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", "onError": "set-to-blank",
"newColumnName": "7100B", "newColumnName": "7100j",
"columnInsertIndex": 3 "columnInsertIndex": 3
} }
] ]
@ -918,7 +918,7 @@ echo
# ----------------------------------- 8515 ----------------------------------- # # ----------------------------------- 8515 ----------------------------------- #
# spec_B_E_01 # spec_B_E_01
# nur für Bautzen und Dresden # nur für Bautzen
echo "Ausleihhinweis 8515..." echo "Ausleihhinweis 8515..."
if curl -fs \ if curl -fs \
--data project="${projects[$p]}" \ --data project="${projects[$p]}" \
@ -939,12 +939,6 @@ if curl -fs \
"omitBlank": false, "omitBlank": false,
"omitError": false, "omitError": false,
"selection": [ "selection": [
{
"v": {
"v": "DD",
"l": "DD"
}
},
{ {
"v": { "v": {
"v": "BZ", "v": "BZ",
@ -1797,7 +1791,7 @@ with(
'1140', '1140',
'2000', '2000',
'4000', '4000',
'7100B', '7100j',
'7100f', '7100f',
'7100a', '7100a',
'7100d', '7100d',

View File

@ -542,7 +542,7 @@ if(row.index - row.record.fromRowIndex == 0,
if(isNonBlank(cells['7100f'].value), if(isNonBlank(cells['7100f'].value),
with(with(rowIndex - row.record.fromRowIndex + 1, i, '00'[0,2-i.length()] + i),exnr, 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' '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['8011'].value, v, '209B/' + exnr + ' a' + v + 'x11' + '\n', '')
+ forNonBlank(cells['8100'].value, v, '209C/' + exnr + ' a' + v + '\n', '') + forNonBlank(cells['8100'].value, v, '209C/' + exnr + ' a' + v + '\n', '')
+ forNonBlank(cells['8200'].value, v, '209G/' + exnr + ' a' + v + '\n', '') + forNonBlank(cells['8200'].value, v, '209G/' + exnr + ' a' + v + '\n', '')