diff options
-rw-r--r-- | data/templates/article.jats_publishing | 13 | ||||
-rw-r--r-- | test/writer.jats_archiving | 2 | ||||
-rw-r--r-- | test/writer.jats_publishing | 2 |
3 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/article.jats_publishing b/data/templates/article.jats_publishing index ce184c0ed..b64425fd8 100644 --- a/data/templates/article.jats_publishing +++ b/data/templates/article.jats_publishing @@ -14,6 +14,13 @@ $endif$ $if(journal.pmc)$ <journal-id journal-id-type="pmc">$journal.pmc$</journal-id> $endif$ +$-- Fallback: an empty journal-id in case none is available. +$if(journal.publisher-id)$ +$elseif(journal.nlm-ta)$ +$elseif(journal.pmc)$ +$else$ +<journal-id></journal-id> +$endif$ <journal-title-group> $if(journal.title)$ <journal-title>$journal.title$</journal-title> @@ -28,6 +35,12 @@ $endif$ $if(journal.eissn)$ <issn pub-type="epub">$journal.eissn$</issn> $endif$ +$-- At least one issn element is required; use empty issn as fallback +$if(journal.pissn)$ +$elseif(journal.eissn)$ +$else$ +<issn></issn> +$endif$ <publisher> <publisher-name>$journal.publisher-name$</publisher-name> $if(journal.publisher-loc)$ diff --git a/test/writer.jats_archiving b/test/writer.jats_archiving index b7274b0f1..a708e0367 100644 --- a/test/writer.jats_archiving +++ b/test/writer.jats_archiving @@ -4,8 +4,10 @@ <article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other"> <front> <journal-meta> +<journal-id></journal-id> <journal-title-group> </journal-title-group> +<issn></issn> <publisher> <publisher-name></publisher-name> </publisher> diff --git a/test/writer.jats_publishing b/test/writer.jats_publishing index 6384a5939..6d5a04057 100644 --- a/test/writer.jats_publishing +++ b/test/writer.jats_publishing @@ -4,8 +4,10 @@ <article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other"> <front> <journal-meta> +<journal-id></journal-id> <journal-title-group> </journal-title-group> +<issn></issn> <publisher> <publisher-name></publisher-name> </publisher> |