Skip to content

Commit

Permalink
Add hbz catalogue and web configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Phu2 committed Aug 19, 2024
1 parent 67b196c commit 6eaf09a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
21 changes: 21 additions & 0 deletions catalogues/hbz.sh
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions web-classes/catalogue/Hbz.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

class Hbz extends Catalogue {
protected $name = 'hbz';
protected $label = 'hbz Verbunddaten Basedump vom 10.08.2024';
protected $url = 'https://example.com/';
protected $marcVersion = 'ZB';
protected $linkTemplate = 'http://example.com/{id}';
}
6 changes: 3 additions & 3 deletions web-config/configuration.cnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
catalogue=oersi
indexName=oersi
dirName=oersi
catalogue=hbz
indexName=hbz
dirName=hbz
3 changes: 3 additions & 0 deletions web-config/configuration.cnf.oersi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
catalogue=oersi
indexName=oersi
dirName=oersi

0 comments on commit 6eaf09a

Please sign in to comment.