From 64fe39c255357c25fc636c46bc3bdfd31257b445 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 28 Mar 2017 09:36:07 +0200 Subject: Added default.jats template. This is copied from Martin Fenner's pandoc-jats project: https://github.com/mfenner/pandoc-jats --- COPYRIGHT | 4 + data/templates/default.jats | 193 ++++++++++++++++++++++++++++++++++++++++++++ pandoc.cabal | 1 + 3 files changed, 198 insertions(+) create mode 100644 data/templates/default.jats diff --git a/COPYRIGHT b/COPYRIGHT index b52c4267e..c7b0f58f7 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -106,3 +106,7 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------ +The template pandoc.jats is Copyright 2013--15 Martin Fenner, +released under GPL version 2 or later. diff --git a/data/templates/default.jats b/data/templates/default.jats new file mode 100644 index 000000000..37f8f16a8 --- /dev/null +++ b/data/templates/default.jats @@ -0,0 +1,193 @@ + + +$if(article.type)$ +
+$else$ +
+$endif$ + + +$if(journal.publisher-id)$ +$journal.publisher-id$ +$endif$ +$if(journal.nlm-ta)$ +$journal.nlm-ta$ +$endif$ +$if(journal.pmc)$ +$journal.pmc$ +$endif$ + +$if(journal.title)$ +$journal.title$ +$endif$ +$if(journal.abbrev-title)$ +$journal.abbrev-title$ +$endif$ + +$if(journal.pissn)$ +$journal.pissn$ +$endif$ +$if(journal.eissn)$ +$journal.eissn$ +$endif$ + +$journal.publisher-name$ +$if(journal.publisher-loc)$ +$journal.publisher-loc$ +$endif$ + + + +$if(article.publisher-id)$ +$article.publisher-id$ +$endif$ +$if(article.doi)$ +$article.doi$ +$endif$ +$if(article.pmid)$ +$article.pmid$ +$endif$ +$if(article.pmcid)$ +$article.pmcid$ +$endif$ +$if(article.art-access-id)$ +$article.art-access-id$ +$endif$ +$if(article.heading)$ + + +$article.heading$ + +$if(article.categories)$ + +$for(article.categories)$ +$article.categories$ +$endfor$ + +$endif$ + +$endif$ +$if(title)$ + +$title$ + +$endif$ +$if(author)$ + +$for(author)$ + +$if(author.orcid)$ +$author.orcid$ +$endif$ + +$if(author.surname)$ +$author.surname$ +$author.given-names$ +$else$ +$author$ +$endif$ + +$if(author.email)$ +$author.email$ +$endif$ +$if(author.aff-id)$ + +$endif$ +$if(author.cor-id)$ +* +$endif$ + +$endfor$ + +$endif$ +$if(article.author-notes)$ + +$if(article.author-notes.corresp)$ +$for(article.author-notes.corresp)$ +* E-mail: $article.author-notes.corresp.email$ +$endfor$ +$endif$ +$if(article.author-notes.conflict)$ +

$article.author-notes.conflict$

+$endif$ +$if(article.author-notes.con)$ +

$article.author-notes.con$

+$endif$ +
+$endif$ +$if(date)$ +$if(date.iso-8601)$ + +$else$ + +$endif$ +$if(date.day)$ +$pub-date.day$ +$endif$ +$if(date.month)$ +$pub-date.month$ +$endif$ +$if(date.year)$ +$pub-date.year$ +$else$ +$date$ +$endif$ + +$endif$ +$if(article.volume)$ +$article.volume$ +$endif$ +$if(article.issue)$ +$article.issue$ +$endif$ +$if(article.fpage)$ +$article.fpage$ +$endif$ +$if(article.lpage)$ +$article.lpage$ +$endif$ +$if(article.elocation-id)$ +$article.elocation-id$ +$endif$ +$if(history)$ + + +$endif$ +$if(copyright)$ + +$if(copyright.statement)$ +$copyright.statement$ +$endif$ +$if(copyright.year)$ +$copyright.year$ +$endif$ +$if(copyright.holder)$ +$copyright.holder$ +$endif$ +$if(copyright.text)$ + +$copyright.text$ + + +$endif$ +$endif$ +$if(tags)$ + +$for(tags)$ +$tags$ +$endfor$ + +$endif$ +$if(article.funding-statement)$ + +$article.funding-statement$ + +$endif$ +
+$if(notes)$ +$notes$ +$endif$ +
+$body$ +
diff --git a/pandoc.cabal b/pandoc.cabal index 592c308e3..596b52c44 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -41,6 +41,7 @@ Data-Files: data/templates/default.html5 data/templates/default.docbook4 data/templates/default.docbook5 + data/templates/default.jats data/templates/default.tei data/templates/default.beamer data/templates/default.opendocument -- cgit v1.2.3