From aa6395a25ed149357445127a1aac1a441bfbdfe7 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Wed, 28 Apr 2021 11:28:25 +0200 Subject: [PATCH] Abschlussarbeiten aus Breitenbrunn --- bibliotheca/Taskfile.yml | 2 ++ bibliotheca/config/main/0500-lax.json | 38 +++++++++++++++++++++++++ bibliotheca/config/main/6800.json | 40 +++++++++++++++++++++++++++ bibliotheca/config/main/template.txt | 1 + pica+/config/template.txt | 1 + 5 files changed, 82 insertions(+) create mode 100644 bibliotheca/config/main/6800.json diff --git a/bibliotheca/Taskfile.yml b/bibliotheca/Taskfile.yml index 58a2a41..27b22c7 100644 --- a/bibliotheca/Taskfile.yml +++ b/bibliotheca/Taskfile.yml @@ -191,6 +191,8 @@ tasks: "$CLIENT" -P {{.PORT}} {{.PROJECT}} --apply config/main/8600.json > {{.LOG}} - > # spec_B_T_24: Hochschulschriftenvermerk für Abschlussarbeiten 4204 "$CLIENT" -P {{.PORT}} {{.PROJECT}} --apply config/main/4204.json > {{.LOG}} + - > # Exemplarspezifisches Schlagwort aus GT1B für Abschlussarbeiten aus Breitenbrunn in 6800 + "$CLIENT" -P {{.PORT}} {{.PROJECT}} --apply config/main/6800.json > {{.LOG}} - > # spec_B_T_25: Einheitssachtitel 3210 "$CLIENT" -P {{.PORT}} {{.PROJECT}} --apply config/main/3210.json > {{.LOG}} - > # spec_B_T_48: Lokale Systematik in 67XX (Exemplarsatz!) für BB, BZ, GC diff --git a/bibliotheca/config/main/0500-lax.json b/bibliotheca/config/main/0500-lax.json index a213504..2d3a23d 100644 --- a/bibliotheca/config/main/0500-lax.json +++ b/bibliotheca/config/main/0500-lax.json @@ -154,5 +154,43 @@ "onError": "keep-original", "repeat": false, "repeatCount": 10 + }, + { + "op": "core/text-transform", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|MEDGR", + "expression": "value", + "columnName": "M|MEDGR", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": "BAC", + "l": "BAC" + } + }, + { + "v": { + "v": "DIP", + "l": "DIP" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "columnName": "0500", + "expression": "grel:'Lax'", + "onError": "keep-original", + "repeat": false, + "repeatCount": 10 } ] diff --git a/bibliotheca/config/main/6800.json b/bibliotheca/config/main/6800.json new file mode 100644 index 0000000..b274914 --- /dev/null +++ b/bibliotheca/config/main/6800.json @@ -0,0 +1,40 @@ +[ + { + "op": "core/column-addition", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|MEDGR", + "expression": "value", + "columnName": "M|MEDGR", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": "BAC", + "l": "BAC" + } + }, + { + "v": { + "v": "DIP", + "l": "DIP" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "baseColumnName": "M|GT1B", + "expression": "grel:value", + "onError": "set-to-blank", + "newColumnName": "6800", + "columnInsertIndex": 124 + } +] diff --git a/bibliotheca/config/main/template.txt b/bibliotheca/config/main/template.txt index c9e18fe..7bf66e8 100644 --- a/bibliotheca/config/main/template.txt +++ b/bibliotheca/config/main/template.txt @@ -43,6 +43,7 @@ with( '4170_2', '4204', '67XX', + '6800', '7100j', '7100f', '7100a', diff --git a/pica+/config/template.txt b/pica+/config/template.txt index b8e481b..dad2791 100644 --- a/pica+/config/template.txt +++ b/pica+/config/template.txt @@ -45,6 +45,7 @@ with(with(rowIndex - row.record.fromRowIndex + 1, i, '00'[0,2-i.length()] + i),e + forNonBlank(cells['8200'].value, v, '209G/' + exnr + ' a' + v + '\n', '') + forNonBlank(cells['8600'].value, v, '209O/' + exnr + ' a' + v + 'x00' + '\n', '') + forNonBlank(cells['8515'].value, v, '220B/' + exnr + ' a' + v + '\n', '') ++ forNonBlank(cells['6800'].value, v, '244Z/' + exnr + ' a' + v + 'x00' + '\n', '') + forNonBlank(cells['67XX'].value, v, forEachIndex(v.split('||'), i, x, '245Z/' + exnr + ' a' + x.trim() + 'x0' + i + '\n').join(''), '') ), '') }}