Skip to content

Commit

Permalink
Add hbz-update catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
Phu2 committed Aug 28, 2024
1 parent 854371f commit d00a10a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
21 changes: 21 additions & 0 deletions catalogues/hbz-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

. ./setdir.sh

NAME=hbz-update
TYPE=xml
if [[ $TYPE == "marc" ]]; then
echo "marc"
TYPE_PARAMS="--marcVersion HBZ --fixAlma"
MARC_DIR=${BASE_INPUT_DIR}/${NAME}/marc
MASK=*.mrc
elif [[ $TYPE == "xml" ]]; then
echo "xml"
TYPE_PARAMS="--marcVersion DNB,HBZ --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_update.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

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

0 comments on commit d00a10a

Please sign in to comment.