PeerJ / jats-conversion

Conversion and validation for JATS XML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jats-to-unixref conversion converts twitter-username into erroneous text element.

michaelstoner opened this issue · comments

When converting JATS with a contrib-id-type that's not orcid the a XSL matches on the node and creates a text node for the value contained within the contrib-id thus the UNIXREF file has a erroneous text node. If we add a twitter username to the tests/example-jats-1-1.xml file thus:

    <contrib-group content-type="authors">
        <contrib id="author-1" contrib-type="author" corresp="yes">
        <contrib-id contrib-id-type="orcid">1234-1234-1234-1234</contrib-id>
        <contrib-id contrib-id-type="twitter-username">AbcDefGHi</contrib-id>

The validate.sh test creates a UNIXREF with the invalid text node AbcDefGHi as a child to person_name.

    <person_name contributor_role="author" sequence="first">
        <ORCID authenticated="true">http://orcid.org/1234-1234-1234-1234</ORCID>
        AbcDefGHi