Skip to content

JATS XML export contains incorrect citation ordering #95

@Vitaliy-1

Description

@Vitaliy-1

I doubt that it's something that can be corrected on our side but anyway worth leaving a record.

When editing citations, which involves correcting in-text pointers to references, the JATS XML export doesn't include it's corrected citation ordering.
Assuming I have a reference with rid bib26. I want to put it as a first reference. While all is working as it should inside the editor, in JATS XML output the reference would look like:

<xref id="_xref-1" ref-type="bibr" rid="bib26">[1]</xref>

While id is correct, the text label pointers to the first reference in the sequence. There is no way to figure out from JATS XML what is the right order of references inside the list. The order of exported references is from lower to higher ids, thus citation label [1] points to the reference, which appears first, i.e. id bib1:

<ref-list>
	<ref id="bib1"></ref>
        <ref id="bib2"></ref>
        <ref id="bib3"></ref>
...
</ref-list>

To make any sense, the label here should repeat the numeric value of id:

<xref id="_xref-1" ref-type="bibr" rid="bib26">[26]</xref>

Or the order of refs inside the list should correspond to the text label:

<ref-list>
	<ref id="bib26"></ref>
...
</ref-list>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions