项目作者: marciuz

项目描述 :
A simple parser for JATS XML for the citation extraction (following the citation rules of PLoS).
高级语言: PHP
项目地址: git://github.com/marciuz/JATS2Citation.git
创建时间: 2020-06-13T16:27:20Z
项目社区:https://github.com/marciuz/JATS2Citation

开源协议:GNU General Public License v3.0

下载


JATS2Citation

A simple parser for JATS XML for the citation extraction (following the citation rules of PLoS).

What is this?

This is a simple class created to generate on the fly a good citation string for a scientific article stored in JATS XML format. The PHP class extract the information with a DOM parser and make the HTML string.

What is JATS?

The Journal Article Tag Suite (JATS) is an XML format used to describe scientific literature published online. It is a technical standard developed by the National Information Standards Organization (NISO) and approved by the American National Standards Institute with the code Z39.96-2012. (from https://en.wikipedia.org/wiki/Journal_Article_Tag_Suite)
More info: https://jats.nlm.nih.gov/

Usage

  1. // Can be a URL or a local XML file
  2. $file = 'https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0055937&type=manuscript';
  3. $J2C = new JATS2Citation();
  4. $res = $J2C->make_citation($file);
  5. // print the HTML
  6. print $res;

… and returns

Torres de la Riva G, Hart BL, Farver TB, Oberbauer AM, Messam LLM, et al. (2013) Neutering Dogs: Effects on Joint Disorders and Cancers in Golden Retrievers. PLoS ONE 8(2): e55937. https://doi.org/10.1371/journal.pone.0055937