https://github.com/acdh-oeaw/arche-biblatex

https://github.com/acdh-oeaw/arche-biblatex

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.8%) to scientific vocabulary

Keywords

arche
Last synced: 6 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: acdh-oeaw
  • License: mit
  • Language: PHP
  • Default Branch: master
  • Homepage:
  • Size: 132 KB
Statistics
  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • Open Issues: 0
  • Releases: 42
Topics
arche
Created about 5 years ago · Last pushed 6 months ago
Metadata Files
Readme License

README.md

arche-biblatex

Build status Coverage Status

An ARCHE dissemination service providing mapping of resource's metadata to the BibLaTeX and CSL-JSON bibliographic entries.

Installation

  • Run in the webserver docroot: bash composer require acdh-oeaw/arche-biblatex ln -s vendor/acdh-oeaw/arche-biblatex/index.php index.php cp vendor/acdh-oeaw/arche-biblatex/config-sample.yaml config.yaml
  • 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

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 the config.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 the config.yaml->biblatex->biblatexToCsl mapping rules.

Details

  • All bibliographic entry information including entry type and citation key are overriden, e.g. json {"type": "my type", "date": {"raw": "2025-06-03"}, "container-title": "Title of my choice"} 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. @NOOVERRIDE{NOOVERRIDE, fieldToOverride = {overriding value}, }
    • or provide just BibLaTeX fields skipping the bibliographic entry header (and the final curly bracket), e.g. fieldToOverride1 = {overriding value}, fieldToOverride2 = {overriding value}
  • 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 as booktitle and bookauthor 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-encoded override parameter value () used here is: @dataset{NOOVERRIDE, author = {Doe, John}, booktitle = {}, bookauthor = {}, }
  • With author field overrided with a new value as well as booktitle and bookauthor 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-encoded override parameter value () used here is: author = {Doe, John}, booktitle = {}, bookauthor = {},

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 bash # install dependencies composer update # prepare an empty docroot mkdir build/docroot # build the image docker build --rm -t acdhch/arche-biblatex:dev --build-arg VARIANT=development build # run the image using current directory as a docroot making it available on local port 8080 docker run -d --name arche-biblatex -p 8080:80 -v `pwd`:/var/www/html acdhch/arche-biblatex:dev # check if it works curl -i 'http://127.0.0.1:8080/?id=https%3A%2F%2Fid.acdh.oeaw.ac.at%2Fgtrans'

Owner

  • Name: Austrian Centre for Digital Humanities & Cultural Heritage
  • Login: acdh-oeaw
  • Kind: organization
  • Email: acdh@oeaw.ac.at
  • Location: Vienna, Austria

GitHub Events

Total
  • Create event: 26
  • Issues event: 17
  • Release event: 25
  • Delete event: 9
  • Issue comment event: 5
  • Push event: 48
Last Year
  • Create event: 26
  • Issues event: 17
  • Release event: 25
  • Delete event: 9
  • Issue comment event: 5
  • Push event: 48

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 47
  • Total Committers: 2
  • Avg Commits per committer: 23.5
  • Development Distribution Score (DDS): 0.404
Top Committers
Name Email Commits
Mateusz Żółtak z****k@z****g 28
Mateusz Żółtak m****k@o****t 19
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 20
  • Total pull requests: 0
  • Average time to close issues: 6 months
  • Average time to close pull requests: N/A
  • Total issue authors: 3
  • Total pull request authors: 0
  • Average comments per issue: 0.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 11
  • Pull requests: 0
  • Average time to close issues: 7 days
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 0
  • Average comments per issue: 0.27
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • zozlak (17)
  • bellerophons-pegasus (2)
  • nczirjak-acdh (1)
Pull Request Authors
Top Labels
Issue Labels
enhancement (8) bug (5) documentation (2)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • packagist 8 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 38
  • Total maintainers: 1
packagist.org: acdh-oeaw/arche-biblatex

Dissemination service generatix BibLaTeX bibliographic information data (.bib files) from ARCHE metadata

  • Versions: 38
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 8 Total
Rankings
Dependent packages count: 19.1%
Forks count: 24.6%
Stargazers count: 32.6%
Dependent repos count: 33.5%
Average: 39.4%
Downloads: 87.1%
Maintainers (1)
Funding
Last synced: 6 months ago

Dependencies

composer.json packagist
  • phpstan/phpstan ^0.12.76 development
  • phpunit/phpunit ^8 development
  • acdh-oeaw/arche-lib ^2 | ^3
  • guzzlehttp/guzzle ^6 | ^7
  • renanbr/bibtex-parser ^2.1
  • zozlak/logging *
.github/workflows/deploy.yaml actions
  • actions/checkout v4 composite
  • docker/login-action v3 composite
build/Dockerfile docker
  • php 8.1-apache build