Download the PHP package acdh-oeaw/arche-biblatex without Composer
On this page you can find all versions of the php package acdh-oeaw/arche-biblatex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acdh-oeaw/arche-biblatex
More information about acdh-oeaw/arche-biblatex
Files in acdh-oeaw/arche-biblatex
Package arche-biblatex
Short Description Dissemination service generatix BibLaTeX bibliographic information data (.bib files) from ARCHE metadata
License MIT
Homepage https://github.com/acdh-oeaw/arche-bibtex
Informations about the package arche-biblatex
arche-biblatex
An ARCHE dissemination service providing mapping of resource's metadata to the BibLaTeX and CSL-JSON bibliographic entries.
Installation
-
Run in the webserver docroot:
- Adjust
config.yaml
Usage
http://deploymentUrl/?id=url-encoded-arche-resource-identifier
Optional query parameters:
lang=two-letters-language-code
- preferred labels language, e.g.lang=en
override=biblatex-bibliographic-entry-or-csl-json-entry
- allows to manually override and/or add output fields. The format is autodetected and is independent of the output format (e.g. you can provided a CSL-JSON override while requesting the entry in the BibLaTeX format).format=desired-reponse-format
- bibliographic data formats:
application/vnd.citationstyles.csl+json
(default) orapplication/json
- returning a CSL-JSON,application/x-bibtex
- returning a BibLaTeX bibliography entry (reference documentation),- citation formats - name of any file (without the
.csl extension
) in the official CSL styles repository, e.g.apa-6th-edition
Override rules
- The base entry is created in the CSL according to the mapping provided in the
config.yaml
. The mapping is chosen based on the ARCHE resource RDF class. - Then overrides comming from the ARCHE resource metadata property specified by the
config.yaml->biblatex->overrideProperty
configuration option are applied. If the override is provided in the BibLaTeX format, it is first converted to the CSL according to theconfig.yaml->biblatex->biblatexToCsl
mapping rules. - Finally overrides comming from the
override
request parameter are applied. If the override is provided in the BibLaTeX format, it is first converted to the CSL according to theconfig.yaml->biblatex->biblatexToCsl
mapping rules.
Details
-
All bibliographic entry information including entry type and citation key are overriden, e.g.
Overrides can be provided both in the CSL-JSON and BibLaTeX formats.
If you want to provide override values in the BibLaTeX format but preserve the entry type and/or citation key use the following syntax:-
either use the "magic"
NOOVERRIDE
type/citation key value, e.g. - or provide just BibLaTeX fields skipping the bibliographic entry header (and the final curly bracket), e.g.
-
- If you want a field to be skipped from the output, override it with an empty value.
Example
Compare the output for the sample resource (https://hdl.handle.net/21.11115/0000-000E-753C-C).
(please note the same data which are provided in the override
request parameter below can be also provided in the "custom citation" resource metadata property)
- Default: https://arche-biblatex.acdh.oeaw.ac.at/?lang=en&id=https%3A%2F%2Fhdl.handle.net%2F21.11115%2F0000-000E-753C-C
-
With entry type set to
book
but citation key preserved,author
field overrided with a new value as well asbooktitle
andbookauthor
fields removed: https://arche-biblatex.acdh.oeaw.ac.at/?lang=en&id=https%3A%2F%2Fhdl.handle.net%2F21.11115%2F0000-000E-753C-C&override=%40dataset%7BNOOVERRIDE%2C%0A%20%20author%20%3D%20%7BDoe%2C%20John%7D%0A%2C%20%20booktitle%20%3D%20%7B%7D%2C%20bookauthor%20%3D%20%7B%7D%2C%0A%7D
The non-URL-encodedoverride
parameter value () used here is: - With
author
field overrided with a new value as well asbooktitle
andbookauthor
fields removed. As automatically created entry type and citation key are to be kept, a short syntax skipping the BibLaTeX entry header is used. https://arche-biblatex.acdh.oeaw.ac.at/?lang=en&id=https%3A%2F%2Fhdl.handle.net%2F21.11115%2F0000-000E-753C-C&override=author%20%3D%20%7BDoe%2C%20John%7D%0A%2Cbooktitle%20%3D%20%7B%7D%2Cbookauthor%20%3D%20%7B%7D%2C The non-URL-encodedoverride
parameter value () used here is:
Docker deployment
The build/docker
directory contains a Dockerfile defining a runtime environment for the service.
It takes one build argument VARIANT
which can be either production
or development
and affects the PHP ini settings - see the Configuration section of the https://hub.docker.com/_/php.
It expects all the service files (including composer libraries and the desired config.yaml
) to be provided in build/docroot
during the build time.
For a live development you can just build it with an empty build/docroot
directory and mount service files during docker run
.
Examples:
- Creating a production image - see the https://github.com/acdh-oeaw/arche-biblatex/blob/master/.github/workflows/deploy.yaml
- Creating a development image and running it locally
All versions of arche-biblatex with dependencies
ext-yaml Version *
zozlak/logging Version ^1.0
guzzlehttp/guzzle Version ^7
acdh-oeaw/arche-lib Version ^7
renanbr/bibtex-parser Version ^2.1
acdh-oeaw/arche-diss-cache Version ^1
zozlak/http-accept Version ^0.1.0
seboettg/citeproc-php Version ^2.6