Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbv/transformers
transformation scripts for bib formats
https://github.com/gbv/transformers
code4lib
Last synced: 3 days ago
JSON representation
transformation scripts for bib formats
- Host: GitHub
- URL: https://github.com/gbv/transformers
- Owner: gbv
- Created: 2011-07-28T10:08:53.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T09:47:56.000Z (over 6 years ago)
- Last Synced: 2024-11-10T03:17:39.507Z (2 months ago)
- Topics: code4lib
- Language: XSLT
- Homepage: https://info.gbv.de/display/COLIBRI/transformers
- Size: 2.29 MB
- Stars: 5
- Watchers: 17
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# transformers
This repository contains several XSLT scripts for transformation of bibliographic records, used in GBV library union network. In particular the scripts are used at the unAPI server unapi.gbv.de.
Each transformer script is located in one subdirectory named by input and output formats. Format names must match `[a-z][a-z0-9]*`, separated by `2`. For instance script `marcxml2mods.xsl` is located in directory `marcxml2mods`. Scripts must no use
Transformer scripts following this naming scheme are *daily synced to unapi.gbv.de* from the *master* branch of this repository, so **don't commit to the master branch unless you surely know what you are doing!**.
## Dependencies
XSLT scripts require an XSLT 1.0 or XSLT 2.0 processor. You should install both e.g. Saxon on Ubuntu:
sudo apt-get install libsaxon-java # Saxon (XSLT 1.0)
sudo apt-get install libsaxonb-java # Saxon-B (XSLT 2.0)## Unit tests
Unit tests can be added in subdirectory `test`. The Bash script `testrunner` automatically runs all available test cases in a directory, e.g.
cd marcxml2mods
../testrunnerThe script expects tests cases in subdirectory `test` with names `*.in.xml` for input and `*.ok.xml` for expected output.
To run tests of all transformers, call `testall.sh`.
[![Build Status](https://travis-ci.org/gbv/transformers.png)](https://travis-ci.org/gbv/transformers)