Closed gnott closed 5 years ago
Thanks for taking a look @giorgiosironi! Of course, I managed to miss something -- the <sub-article>
tag's attributes, including the article_type
and id
values. I think these may be useful in downstream projects, so I added with a new commit. I will re-request a review, expecting it should not require much to check again (if you choose to).
I will go ahead and merge with the latest commit included, to allow me to progress in the next project.
Re: issue https://github.com/elifesciences/elife-tools/issues/310
Here is a new JATS parsing function to extract
<sub-article>
tag metadata. It includes some details about the parent<article>
tag.The one test case is based on the eLife article
00666
kitchen sink XML, edited for brevity.The output is the basic data I want to use in generating Crossref peer review deposits.
The data the new function targets is similar but slightly different than the JSON output the parser produces from the
decision_letter()
andauthor_response()
functions, because those others are tailored to produce JSON output that is valid against the RAML API schema.