Citation.js: a format-independent, modular bibliography tool for the browser and command line

Background Given the vast number of standards and formats for bibliographical data, any program working with bibliographies and citations has to be able to interpret such data. This paper describes the development of Citation.js (https://citation.js.org/), a tool to parse and format according to tho...

Full description

Bibliographic Details
Main Author: Lars G. Willighagen
Format: Article
Language:English
Published: PeerJ Inc. 2019-08-01
Series:PeerJ Computer Science
Subjects:
Online Access:https://peerj.com/articles/cs-214.pdf
id doaj-e6c07bb7009b4503ac649776902a1b35
record_format Article
spelling doaj-e6c07bb7009b4503ac649776902a1b352020-11-25T00:10:08ZengPeerJ Inc.PeerJ Computer Science2376-59922019-08-015e21410.7717/peerj-cs.214Citation.js: a format-independent, modular bibliography tool for the browser and command lineLars G. Willighagen0Eindhoven, The NetherlandsBackground Given the vast number of standards and formats for bibliographical data, any program working with bibliographies and citations has to be able to interpret such data. This paper describes the development of Citation.js (https://citation.js.org/), a tool to parse and format according to those standards. The program follows modern guidelines for software in general and JavaScript in specific, such as version control, source code analysis, integration testing and semantic versioning. Results The result is an extensible tool that has already seen adaption in a variety of sources and use cases: as part of a server-side page generator of a publishing platform, as part of a local extensible document generator, and as part of an in-browser converter of extracted references. Use cases range from transforming a list of DOIs or Wikidata identifiers into a BibTeX file on the command line, to displaying RIS references on a webpage with added Altmetric badges to generating ”How to cite this” sections on a blog. The accuracy of conversions is currently 27% for properties and 60% for types on average and a typical initialization takes 120 ms in browsers and 1 s with Node.js on the command line. Conclusions Citation.js is a library supporting various formats of bibliographic information in a broad selection of use cases and environments. Given the support for plugins, more formats can be added with relative ease.https://peerj.com/articles/cs-214.pdfBibliographyJavascript
collection DOAJ
language English
format Article
sources DOAJ
author Lars G. Willighagen
spellingShingle Lars G. Willighagen
Citation.js: a format-independent, modular bibliography tool for the browser and command line
PeerJ Computer Science
Bibliography
Javascript
author_facet Lars G. Willighagen
author_sort Lars G. Willighagen
title Citation.js: a format-independent, modular bibliography tool for the browser and command line
title_short Citation.js: a format-independent, modular bibliography tool for the browser and command line
title_full Citation.js: a format-independent, modular bibliography tool for the browser and command line
title_fullStr Citation.js: a format-independent, modular bibliography tool for the browser and command line
title_full_unstemmed Citation.js: a format-independent, modular bibliography tool for the browser and command line
title_sort citation.js: a format-independent, modular bibliography tool for the browser and command line
publisher PeerJ Inc.
series PeerJ Computer Science
issn 2376-5992
publishDate 2019-08-01
description Background Given the vast number of standards and formats for bibliographical data, any program working with bibliographies and citations has to be able to interpret such data. This paper describes the development of Citation.js (https://citation.js.org/), a tool to parse and format according to those standards. The program follows modern guidelines for software in general and JavaScript in specific, such as version control, source code analysis, integration testing and semantic versioning. Results The result is an extensible tool that has already seen adaption in a variety of sources and use cases: as part of a server-side page generator of a publishing platform, as part of a local extensible document generator, and as part of an in-browser converter of extracted references. Use cases range from transforming a list of DOIs or Wikidata identifiers into a BibTeX file on the command line, to displaying RIS references on a webpage with added Altmetric badges to generating ”How to cite this” sections on a blog. The accuracy of conversions is currently 27% for properties and 60% for types on average and a typical initialization takes 120 ms in browsers and 1 s with Node.js on the command line. Conclusions Citation.js is a library supporting various formats of bibliographic information in a broad selection of use cases and environments. Given the support for plugins, more formats can be added with relative ease.
topic Bibliography
Javascript
url https://peerj.com/articles/cs-214.pdf
work_keys_str_mv AT larsgwillighagen citationjsaformatindependentmodularbibliographytoolforthebrowserandcommandline
_version_ 1725409227166449664