Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into createAdditionalField…
Browse files Browse the repository at this point in the history
…sForHbzPublishingCatalogue
  • Loading branch information
TobiasNx committed Aug 27, 2024
2 parents 6ad6e51 + 6de049e commit a9e1ed7
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ setdir.sh
.env

# used as Docker volume
web-config
# web-config

# Node packages
node_modules
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
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
volumes:
- ./${INPUT:-input}:/opt/qa-catalogue/input
- ./${OUTPUT:-output}:/opt/qa-catalogue/output
- ./logs:/opt/qa-catalogue/logs
- ./solr:/opt/solr
- ./catalogues:/opt/qa-catalogue/catalogues
- ./web-classes/catalogue:/var/www/html/qa-catalogue/classes/catalogue
- ./${WEBBCONFIG:-web-config}:/var/www/html/qa-catalogue/config
Expand Down
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 a9e1ed7

Please sign in to comment.