-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Disable git error messages in log file (#179) * Remove extractGitVersion, use version.ini instead (#179) * Omit timestamp in error logger It's likely added by the operating system. * Don't show timeline of no historicalDataDir * Fix undefined variable * Start Docker image (#192) * Configuration without id is broken #194 --------- Co-authored-by: Jakob Voss <[email protected]>
- Loading branch information
Showing
20 changed files
with
143 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# site files | ||
configuration.cnf | ||
images/ | ||
libs/ | ||
cache/ | ||
config/ | ||
vendor/ | ||
_smarty/ | ||
logs/ | ||
|
||
# data files | ||
metadata-qa/ | ||
|
||
# editor files | ||
.idea/ | ||
|
||
# development files | ||
.git | ||
.github | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
.dockerignore | ||
tests | ||
*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# includes most required extensions | ||
FROM php:8.1-apache | ||
|
||
# install locales, gettext, zip, yaml | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
locales gettext zlib1g-dev libzip-dev libyaml-dev \ | ||
&& locale-gen \ | ||
en_GB.UTF-8 && locale-gen de_DE.UTF-8 && locale-gen pt_BR.UTF-8 \ | ||
&& apt-get --assume-yes autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pecl install yaml \ | ||
&& docker-php-ext-enable yaml \ | ||
&& docker-php-ext-install gettext zip | ||
|
||
# install composer from its official Docker image | ||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
# copy application files, install PHP libraries and initialize | ||
USER www-data | ||
WORKDIR /var/www/html | ||
|
||
# TODO: chown www-data | ||
COPY . . | ||
|
||
RUN composer install --prefer-dist --no-dev \ | ||
&& composer clear-cache | ||
|
||
RUN mkdir config metadata-qa \ | ||
&& echo dir=metadata-qa > configuration.cnf \ | ||
&& echo include=config/configuration.cnf >> configuration.cnf \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,4 +94,4 @@ private function getByTypeImages() { | |
} | ||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
|
||
class Bnf extends Catalogue { | ||
|
||
protected $name = 'bnpt'; | ||
protected $label = 'Biblioteca Nacional de Portugal (Portugal National Library)'; | ||
protected $url = 'https://www.bnportugal.gov.pt/'; | ||
protected $schemaType = "UNIMARC"; | ||
|
||
function getOpacLink($id, $record) { | ||
return sprintf('http://id.bnportugal.gov.pt/bib/catbnp/%s', trim($id)); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: '3' | ||
services: | ||
app: | ||
build: | ||
context: "." | ||
ports: | ||
# TODO: solr-port | ||
- "${WEBPORT:-80}:80" | ||
volumes: | ||
- "${CONFIG:-./config}:/var/www/html/config" | ||
- "${BASE_OUTPUT_DIR:-./metadata-qa}:/var/www/html/metadata-qa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<a href="https://github.com/pkiraly/qa-catalogue-web" target="_blank">qa-catalogue-web</a> | ||
{if $clientVersion.version} | ||
{if isset($clientVersion.tag)} | ||
version | ||
<a href="https://github.com/pkiraly/qa-catalogue-web/releases/tag/{$clientVersion.version}" target="_blank">{$clientVersion.version}</a> | ||
{elseif $clientVersion.commit} | ||
<a href="https://github.com/pkiraly/qa-catalogue-web/releases/tag/{$clientVersion.tag}" target="_blank">{$clientVersion.tag}</a> | ||
{elseif isset($clientVersion.commit)} | ||
version | ||
<a href="https://github.com/pkiraly/qa-catalogue-web/commit/{$clientVersion.commit}" target="_blank">{$clientVersion.commit|substr:0:8}</a>@<a href="https://github.com/pkiraly/qa-catalogue-web/tree/{$clientVersion.branch}" target="_blank">{$clientVersion.branch}</a> | ||
{elseif isset($clientVersion.branch)} | ||
branch | ||
<a href="https://github.com/pkiraly/qa-catalogue-web/tree/{$clientVersion.branch}" target="_blank">{$clientVersion.branch}</a> | ||
{/if} | ||
{if !$clientVersion.clean} | ||
{if isset($clientVersion.dirty) && $clientVersion.dirty} | ||
<em>+ local modifications</em> | ||
{/if} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
default-tab=completeness | ||
label=My custom Catalogue | ||
url=https://my-catalogue.org | ||
linkTemplate=https://my-catalogue.org/catalogue/{id} | ||
language=de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dir=qa-catalogue | ||
include=tests/files/configuration/valid2-embedded.cnf |