We are happy to announce the relaunch of our DOI Citation Formatting service, available at http://citation.crosscite.org. The service uses the citeproc.js library by Frank Bennett together with the more than 5,000 citation styles made available by the citationstyles.org project. The service works with DOIs from Crossref, mEDRA and ISTIC in addition to DataCite DOIs. The main reason for the relaunch was a major upgrade of the backend, in addition we did some changes to the web user interface. For those interested on integrating this service with other systems there are three things you ought to know.
1. Docker is under the hood
We rebuilt the citation formatter using Docker. Docker is a popular software containerization platform wrap a piece of software in a complete system that contains everything needed to run: code, runtime, system tools, system libraries. This guarantees that the software will always run exactly the same way, regardless of its environment.
Using Docker has a few practical implications. Deploying the software in a production environment becomes much easier, thus enabling quick deployments of bug fixes and updates to include new citation styles. An additional advantage is that running the DOI Citation Formatter service in development or production becomes much easier for other people and organizations. Using Docker, a single one-liner on your terminal can help you to achieve this:
$ docker run -p 8000:80 crosscite/citeproc-doi-server
One can run Docker in any platform. Until recently Docker required Linux, but this spring Docker for Mac and Docker for Windows was released and provides a nice wrapper around Docker so that the user experience is almost identical. Check the service repository for further details regarding running the citation formatter service with Docker.
DataCite is in the e process of Dockerizing many of our services. We are already running seven other DataCite services with Docker and plan to migrate all DataCite services to the Docker platform. Deploying software with Docker is much simpler than manually installing software on a server or virtual machine; this setup also allows us to run multiple servers with the same software in different locations, providing redundancy in cases of service outages.
2. This is an API
It might not come as a surprise that the DOI Citation Formatting service is also an API. You can format a given DOI using a simple call:
Take for example this DOI 10.1145/2783446.2783605. To format it in the
chicago style and in
french you just need to do:
Additionally one can format a given citeproc text via
3. There is room for more work
We had additional ideas for the DOI citation formatting service while working on the relaunch. We would like to make the user interface more accessible. The service for example currently uses the style names form the citationstyles.org library instead of the human-readable names. We are very interested in feedback and will reevaluate the service frontend going forward.
In terms of the backend there are issues with managing dependencies on other software packages, meaning that for example we currently can not use the latest version of node.js. Ideally we would like to package the software into an NPM module, making it easier to add citation formatting tools to other node.js projects.
In summary, rebuilding the DOI Citation Formatting service service with Docker, is a solid step in running services in a more efficient manner.