pkp / jatsTemplate

Basic JATS document template generator plugin for OJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JATS Template Plugin

This plugin permits OJS to use a basic JATS XML document generated from the OJS metadata and full-text extraction in cases where a better JATS XML document is not available.

It is intended to be used in concert with the OAI JATS plugin (available at https://github.com/pkp/oaiJats) to deliver JATS via OAI for journals that do not have better JATS XML available.

Note that the JATS XML this plugin delivers it not intended for publication i.e. using Lens Reader -- considerable additional improvement and quality control would be required before the document is suitable for that purpose.

Tag Definition Support Unit-tests
journal-id Short code or abbreviation used as an identifier for a journal. πŸ†— πŸ†—
journal-title-group Container element for the titles of the journal in which the article was published. πŸ†— πŸ†—
journal-title Full title of the journal in which the article was published. πŸ†— πŸ†—
trans-title-group Container element for translated and transliterated titles. πŸ†— πŸ†—
trans-title Title of a document or document part that has been translated into a language other than that of the original publication. When a document is published simultaneously in more than one language, one language must be chosen for the title and all other document titles become translated titles. πŸ†— πŸ†—
abbrev-journal-title Short form of the title of the journal in which an article is published. πŸ†— πŸ†—
publisher Container element for information about the person, company, or other entity that published a work. πŸ†— πŸ†—
publisher-name Name of the person, company, or other entity that published a work. πŸ†— πŸ†—
issn International Standard Serial Number, the international code that uniquely identifies a serial publication title. πŸ†— πŸ†—
article-meta Container element for information concerning the article that identifies or describes the article. πŸ†— πŸ†—
article-id Unique external identifier assigned to an article. πŸ†— πŸ†—
article-categories Container element for elements that may be used to group articles into related clusters, for example, by subject matter or by series. πŸ†— πŸ†—
subj-group Container element for the subject matter designations describing a document’s content or a component document’s content. Subjects are used to organize documents into groupings (potentially hierarchical groupings) for display or print. πŸ†— πŸ†—
subject Name of one subject or topic used to describe an article. Such topics and groupings of topics are typically used to provide headings for groups of documents or document components in a printed, or online, generated Table of Contents. πŸ†— πŸ†—
title-group Container element to hold the various titles for a document or a document component. πŸ†— πŸ†—
article-title Full title of an article. πŸ†— πŸ†—
contrib-group Container element for one or more contributors and information about those contributors. πŸ†— πŸ†—
contrib Container element for information about a single author, editor, or other contributor. πŸ†— πŸ†—
email Electronic mail address of a person or institution. πŸ†— πŸ†—
xref Reference to an object within the document (for example, a table, a bibliographic citation). πŸ†— πŸ†—
name Container element for the component elements of personal names πŸ†— πŸ†—
surname Surname of a person. πŸ†— πŸ†—
given-names All given names of a person, such as the first name, middle names, maiden name if used as part of the married name, etc. πŸ†— πŸ†—
aff Name of an institution or organization (for example, university, corporation) with which a contributor is affiliated. πŸ†— πŸ†—
institution Name of an institution or organization (for example, a university or corporation). πŸ†— πŸ†—
fpage Page number on which a document starts. πŸ†— πŸ†—
lpage Page number on which a document ends. πŸ†— πŸ†—
permissions Container element for copyright and license information for the entire article or for the object which contains the element. πŸ†— πŸ†—
copyright-statement Copyright notice or statement, suitable for printing or display. πŸ†— πŸ†—
copyright-year The year of copyright. πŸ†— πŸ†—
copyright-holder Name of the organizational or personal entity that holds a copyright. πŸ†— πŸ†—
self-uri URI for another version of a document. This element may be used when the document is available in multiple forms (for example, printed article and in its expanded version with additional graphics available online). πŸ†— πŸ†—
kwd-group Container element for one set of keywords (such as s, s, or s) used to describe a document. πŸ†— πŸ†—
kwd A keyword is a finding aid used to record one subject term, key phrase, abbreviation, indexing word, taxonomic structure, or other expression that is associated with a whole structure (such as an article). Keywords can be used for identification, searching, and indexing purposes. A keyword element () may contain a repetition of words found in the structure, or it may contain broader terms, narrower terms, related terms, or taxonomic identifiers used to find the structure in a search or provide semantic classification of the text by mapping a specific structure to a taxonomy. πŸ†— πŸ†—
counts Container element for counts of a document (for example, number of tables, number of figures, number of words). πŸ†— πŸ†—
page-count Total number of pages in a work in print; by convention, each page or partial page is counted as one. Electronic-only works do not traditionally have page counts. πŸ†— πŸ†—
body Main textual portion of the document that conveys the narrative content. πŸ†— πŸ†—
p Textual unit or block; a textual paragraph. πŸ†— ❌
back Material published with an article but following the narrative flow. πŸ†— πŸ†—
ref-list List of bibliographic references for a document or document component. πŸ†— ❌
ref One item in a bibliographic list. πŸ†— ❌
mixed-citation Bibliographic description of a work. Includes a combination of bibliographic reference elements and untagged text. Spacing and punctuation are preserved. πŸ†— ❌

Installation

This plugin should be available from the Plugin Gallery within OJS.

Automated Tests

./lib/pkp/lib/vendor/bin/phpunit ./plugins/generic/jatsTemplate/tests/functional/ArticleTest.php --configuration lib/pkp/tests/phpunit.xml
./lib/pkp/lib/vendor/bin/phpunit ./plugins/generic/jatsTemplate/tests/functional/ArticleFrontTest.php --configuration lib/pkp/tests/phpunit.xml
./lib/pkp/lib/vendor/bin/phpunit ./plugins/generic/jatsTemplate/tests/functional/ArticleBackTest.php --configuration lib/pkp/tests/phpunit.xml
./lib/pkp/lib/vendor/bin/phpunit ./plugins/generic/jatsTemplate/tests/functional/ArticleBodyTest.php --configuration lib/pkp/tests/phpunit.xml

About

Basic JATS document template generator plugin for OJS

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%