elifesciences / elife-tools

Python library for parsing eLife article XML data.
MIT License
15 stars 7 forks source link

Expand functions available in xmlio.py #313

Closed gnott closed 5 years ago

gnott commented 5 years ago

I am putting together some decision letter JATS generation logic (in the https://github.com/elifesciences/decision-letter-parser repo). I remember some logic in one of the other libraries that generates XML, and I tracked it down to the https://github.com/elifesciences/elife-crossref-xml-generation/blob/develop/elifecrossref/tags.py module.

There are some functions in here I'd like to reuse in the decision letter parser project.

Tasks are:

gnott commented 5 years ago

After some experimentation today, so far the only function to be reused is reparsed_tag(), which I will move over.

I think the rest can remain where they are. Some vary because the output for the Crossref deposit project is different than JATS generation, for example Crossref uses <i> tag and JATS uses <italic>.

If there are other functions to move they can be done later.

gnott commented 5 years ago

Crossref library updated in PR https://github.com/elifesciences/elife-crossref-xml-generation/pull/77, this issue can be closed!