10000 JATS XML ref-list citation information not read · Issue #7990 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
JATS XML ref-list citation information not read #7990
Closed
@castedo

Description

@castedo

Pandoc does not output citation information when reading JATS XML files.

STEPS TO REPRODUCE:
Generate two JATS XML files with citation info by doing

pandoc source.md -s --citeproc -f markdown -t jats+element_citations -o jats-element.xml
pandoc source.md -s --citeproc -f markdown -t jats -o jats-mixed.xml

with the markdown source.md to generate a jats-element.xml and jats-mixed.xml. Then inspect the "references" objects output by

pandoc jats-mixed.xml -s --citeproc -f jats -t json
pandoc jats-element.xml -s --citeproc -f jats -t json

in the AST dumped as json. Might be convenient to pipe the outputs through

python -c 'import sys, json; print(json.load(sys.stdin)["meta"]["references"]["c"])'

The citation info read from jats-mixed.xml does not have any details about the reference. And for jats-element.xml it appears zero citation information was read.

WHAT EXPECTED:
Something like the references output from the markdown directly:

pandoc source.md -s --citeproc -f markdown -t json

with all the details about the citations.

Pandoc version?
Both versions 2.14.3 and 2.17.1.1 (on Fedora 35)

I've also tried outputing HTML with many different options but citations information in the input JATS XML never appears in the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0