JATS writer: don't embed string-name in string.

That's illegal with this DTD.
This commit is contained in:
John MacFarlane 2019-06-11 16:16:05 -07:00
parent 6704b66c33
commit bb68c183b3
2 changed files with 2 additions and 6 deletions

View file

@ -83,14 +83,14 @@ $for(author)$
$if(author.orcid)$
<contrib-id contrib-id-type="orcid">$author.orcid$</contrib-id>
$endif$
<name>
$if(author.surname)$
<name>
<surname>$author.surname$</surname>
<given-names>$author.given-names$</given-names>
</name>
$else$
<string-name>$author$</string-name>
$endif$
</name>
$if(author.email)$
<email>$author.email$</email>
$endif$

View file

@ -16,14 +16,10 @@
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<string-name>John MacFarlane</string-name>
</name>
</contrib>
<contrib contrib-type="author">
<name>
<string-name>Anonymous</string-name>
</name>
</contrib>
</contrib-group>
<pub-date pub-type="epub">