Skip to content

Releases: elifesciences/elife-tools

elifetools 0.32.0

20 Feb 20:45
bc16e7d
Compare
Choose a tag to compare
elifetools 0.32.0 Pre-release
Pre-release

Modified: utils.convert_testing_doi() enhancing support for converting eLife end2end testing DOI values to a DOI value the JSON rewrite rules will understand; this should only affect eLife XML and will have no other impacts

Code merged in PR #417

elifetools 0.31.0

27 Jan 20:03
e321796
Compare
Choose a tag to compare
elifetools 0.31.0 Pre-release
Pre-release

Enhanced the parsing of <sub-article> tags

In rawJATS.py,

Modified: editor_evaluation(), uses the <article-title> value as well as the @article-type attribute to find the Editor's evaluation tag
Modified: author_response() , also considers @article-type of author-comment to be an Author response
Added: elife_assessment() to find the eLife assessment <sub-article> node
Added: recommendation_for_authors() to find the Recommendations for authors <sub-article> node
Added: public_reviews() to find the<sub-article> nodes which are public reviews, but not Recommendation for authors node
Added: filter_sub_articles_by_title() to filter sub-articles by their title
Added: editor_report_by_title(), referee_report_by_title() to refactor finding sub-articles by their @article-type attribute

In parseJATS.py,

Modified: editor_evaluation() to use the new function editor_report(), and should remain backwards compatible
Added: editor_report() to re-use code which formats those types of sub-article
Added: elife_assessment() to return JSON format of an eLife assessment
Added: referee_report() to format JSON of a referee-report sub-article
Added: recommendations_for_authors() to return JSON of Recommendations for authors
Added: public_review(), returns a list of JSON for public review sub-articles

Test cases added, and increased the tests for the rawJATS.py parser for sub-article content.

tl;dr almost all of these changes can be considered backwards-compatible, unless the modified functions were used on non-eLife-style XML, then the return value may differ depending on the <article-title> value of the <sub-article> tag.

Code merged in PR #415

elifetools 0.30.0

24 Jan 01:57
60e3f26
Compare
Choose a tag to compare
elifetools 0.30.0 Pre-release
Pre-release

Modified: parseJATS.format_contributor() will set a contributor dict key named anonymous to True if an <anonymous/> tag is found inside the <contrib> tag

Code merged in PR #413

elifetools 0.29.0

12 Jan 00:13
bd80714
Compare
Choose a tag to compare
elifetools 0.29.0 Pre-release
Pre-release

Modified: meta_article_id() in rawJATS.py to accept a specific_use argument
Added: version_doi() to rawJATS.py
Added: version_doi() to parseJATS.py

The changes should be generally backwards compatible unless there's an XML <article-id> tag with a specific-use attribute.

Code merged in PR #411

elifetools 0.28.0

02 Dec 02:15
e643454
Compare
Choose a tag to compare
elifetools 0.28.0 Pre-release
Pre-release

Modified: utils.escape_ampersand() to not escape the ampersand in decimal unicode entities such as &#8220;

Code merged in PR #408

elifetools 0.27.0

08 Nov 01:01
ba210e5
Compare
Choose a tag to compare
elifetools 0.27.0 Pre-release
Pre-release

Modified: parseJATS.is_poa() look for a <body> tag instead of previously a <pub-date pub-type="collection"> tag

Code merged in PR #405

elifetools 0.26.0

27 Oct 21:18
adc04aa
Compare
Choose a tag to compare
elifetools 0.26.0 Pre-release
Pre-release

Modified: rawJATS.doi() and rawJATS. publisher_id(), backwards compatible
Added: rawJATS. meta_article_id()
Modified: parseJATS.is_author_group_author() enhanced support to look into <front-stub> tags, and not raise an exception when parent tags are absent

Group author code merged in PR #403
Raw parser code merged in PR #402

0.25.0: Merge pull request #401 from elifesciences/develop

09 Sep 17:28
c5f7a15
Compare
Choose a tag to compare

Enhanced the parsing of <disp-quote content-type="editor-comment"> tags in the body_block_content() function to include more than just <p> tag content.

Code merged in PR #400

elifetools 0.24.0

09 Sep 01:05
92f076e
Compare
Choose a tag to compare
elifetools 0.24.0 Pre-release
Pre-release

Use the ellipsis style authorLine value in the mixed_citations() function.

Code merged in PR #398

elifetools 0.23.0

01 Sep 01:31
11a130c
Compare
Choose a tag to compare
elifetools 0.23.0 Pre-release
Pre-release

Backwards compatible optimisation to format_contributor()

Modified format_contributor()to accept an optional target_tags_aff argument for BeautifulSoup <aff> tag nodes.

Code meregd in PR #396