Cargando…
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 th...
Autor principal: | |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
PeerJ Inc.
2019
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7924481/ https://www.ncbi.nlm.nih.gov/pubmed/33816867 http://dx.doi.org/10.7717/peerj-cs.214 |
_version_ | 1783659099332804608 |
---|---|
author | Willighagen, Lars G. |
author_facet | Willighagen, Lars G. |
author_sort | Willighagen, Lars G. |
collection | PubMed |
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. |
format | Online Article Text |
id | pubmed-7924481 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2019 |
publisher | PeerJ Inc. |
record_format | MEDLINE/PubMed |
spelling | pubmed-79244812021-04-02 Citation.js: a format-independent, modular bibliography tool for the browser and command line Willighagen, Lars G. PeerJ Comput Sci Computer Networks and Communications 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. PeerJ Inc. 2019-08-12 /pmc/articles/PMC7924481/ /pubmed/33816867 http://dx.doi.org/10.7717/peerj-cs.214 Text en ©2019 Willighagen https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited. |
spellingShingle | Computer Networks and Communications Willighagen, Lars G. Citation.js: a format-independent, modular bibliography tool for the browser and command line |
title | 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_short | 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 |
topic | Computer Networks and Communications |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7924481/ https://www.ncbi.nlm.nih.gov/pubmed/33816867 http://dx.doi.org/10.7717/peerj-cs.214 |
work_keys_str_mv | AT willighagenlarsg citationjsaformatindependentmodularbibliographytoolforthebrowserandcommandline |