JATS writer: don't embed string-name in string.
That's illegal with this DTD.
commitbb68c183b38542b9acf1090a1ceaa84455aedc4b
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 11 Jun 2019, 16:16 (7 years ago)
parent6704b66
data/templates/default.jats+2−2
@@ -83,14 +83,14 @@ $for(author)$
8383$if(author.orcid)$
8484<contrib-id contrib-id-type="orcid">$author.orcid$</contrib-id>
8585$endif$
86−<name>
8786$if(author.surname)$
87+<name>
8888<surname>$author.surname$</surname>
8989<given-names>$author.given-names$</given-names>
90+</name>
9091$else$
9192<string-name>$author$</string-name>
9293$endif$
93−</name>
9494$if(author.email)$
9595<email>$author.email$</email>
9696$endif$
test/writer.jats−4
@@ -16,14 +16,10 @@
1616</title-group>
1717<contrib-group>
1818<contrib contrib-type="author">
19−<name>
2019<string-name>John MacFarlane</string-name>
21−</name>
2220</contrib>
2321<contrib contrib-type="author">
24−<name>
2522<string-name>Anonymous</string-name>
26−</name>
2723</contrib>
2824</contrib-group>
2925<pub-date pub-type="epub">