Skip to content

JATS copyright-statement not read #71

@castedo

Description

@castedo

REPO STEPS:

With the following jats.xml file:

<article>
  <front>
    <article-meta>
      <title-group>
        <article-title>Copyright Statement Test</article-title>
      </title-group>
      <permissions>
        <copyright-statement>© 2020, Smith</copyright-statement>
      </permissions>
    </article-meta>
  </front>
</article>

run

jats convert --frontmatter page jats.xml

GOT:
A jats.myst.json file with:

{
  "mdast": {
    "type": "root",
    "children": []
  },
  "frontmatter": {
    "title": "Copyright Statement Test",
    "abbreviations": {}
  }
}

EXPECTED:

{
  ...
  "frontmatter": {
    "title": "Copyright Statement Test",
    "copyright": "© 2023, Smith",
    ...
  }
}

COMMENTS:

The expected JSON above is consistent with the JSON export that results from running the mystmd CLI myst with YAML header inside markdown source file:

---
title: Copyright Statement Test
copyright: © 2023, Smith
---

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