From 6eaf09a50055dfd9986bc3385a268b3f0e5b91fe Mon Sep 17 00:00:00 2001 From: Phu Tu Date: Mon, 19 Aug 2024 09:51:13 +0200 Subject: [PATCH] Add hbz catalogue and web configs --- catalogues/hbz.sh | 21 +++++++++++++++++++++ web-classes/catalogue/Hbz.php | 9 +++++++++ web-config/configuration.cnf | 6 +++--- web-config/configuration.cnf.oersi | 3 +++ 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100755 catalogues/hbz.sh create mode 100644 web-classes/catalogue/Hbz.php create mode 100644 web-config/configuration.cnf.oersi diff --git a/catalogues/hbz.sh b/catalogues/hbz.sh new file mode 100755 index 00000000..e4265819 --- /dev/null +++ b/catalogues/hbz.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +. ./setdir.sh + +NAME=hbz +TYPE=xml +if [[ $TYPE == "marc" ]]; then + echo "marc" + TYPE_PARAMS="--marcVersion MARC21 --fixAlma" + MARC_DIR=${BASE_INPUT_DIR}/${NAME}/marc + MASK=*.mrc +elif [[ $TYPE == "xml" ]]; then + echo "xml" + TYPE_PARAMS="--marcVersion MARC21 --marcxml --fixAlma" + MARC_DIR=${BASE_INPUT_DIR}/${NAME}/marc + MASK=*.gz +else + echo "else: ${TYPE}" +fi + +. ./common-script diff --git a/web-classes/catalogue/Hbz.php b/web-classes/catalogue/Hbz.php new file mode 100644 index 00000000..8445c141 --- /dev/null +++ b/web-classes/catalogue/Hbz.php @@ -0,0 +1,9 @@ +