aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-06-11 17:08:40 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-06-11 17:08:40 -0700
commit193b5ccebaceeb7c0959d40136a1a4d2aeb00c95 (patch)
treeb78291e3c2f1e8e80a923f23ad3d0bedefb72249 /data/templates
parent5bbaedac57d656d3f38a574763b2ab5451a20158 (diff)
downloadpandoc-193b5ccebaceeb7c0959d40136a1a4d2aeb00c95.tar.gz
JATS template: don't include journal-meta unless 'journal'...
...is set in metadata. Otherwise we get validation errors.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.jats2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/templates/default.jats b/data/templates/default.jats
index 5fd3590a5..709b10f57 100644
--- a/data/templates/default.jats
+++ b/data/templates/default.jats
@@ -10,6 +10,7 @@ $else$
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.0" article-type="other">
$endif$
<front>
+$if(journal)$
<journal-meta>
$if(journal.publisher-id)$
<journal-id journal-id-type="publisher-id">$journal.publisher-id$</journal-id>
@@ -41,6 +42,7 @@ $if(journal.publisher-loc)$
$endif$
</publisher>
</journal-meta>
+$endif$
<article-meta>
$if(article.publisher-id)$
<article-id pub-id-type="publisher-id">$article.publisher-id$</article-id>