An online tool for formatting DOIs from a DataCite, Crossref, mEDRA, and in various styles. It allows user to format DOIs bilbiographic information in the desired format. It uses content negotiation to get the "application/vnd.citationstyles.csl+json" representation of a DOI. With the default dx.doi.org resolver this is supported by all DataCite and Crossref DOIs.
Using Docker.
docker run -p 8000:80 crosscite/citeproc-doi-server
You can now point your browser to http://localhost:8000
and use the application.
Additionally you can use the server as a API. You can format a given DOI via
GET /format?doi=<doi>&style=<style>&lang=<locale>
or format a given citeproc text via
POST /format?style=<style>&lang=<lang>
This requires a body with Content-Type:application/vnd.citationstyles.csl+json
.
The style
and lang
parameters are optional. A list of allowed values is given by
GET /styles
respectively
GET /locales
Follow along via Github Issues.
- Fork the project
- Write tests for your new feature or a test that reproduces a bug
- Implement your feature or make a bug fix
- Do not mess with Rakefile, version or history
- Commit, push and make a pull request. Bonus points for topical branches.
citeproc-doi-server is released under the Apache 2.0 License.