Skip to content

Releases: elifesciences/elife-tools

elifetools 0.40.0

27 Feb 23:33
89ed20d
Compare
Choose a tag to compare
elifetools 0.40.0 Pre-release
Pre-release

Modified: parseJATS.funding_awards_json(), will includeawardDoi in the award data if a funding award ID type is DOI

Code merged in PR #438

elifetools 0.39.0

05 Dec 02:18
735a44e
Compare
Choose a tag to compare
elifetools 0.39.0 Pre-release
Pre-release

Many lazy functions added which use yield instead of collecting all data before return a value. Changes should be backwards compatible, except rawJATS.list() was renamed to rawJATS.get_list()

Due to the many modified functions, only the newly added functions are listed here:

Modified / Renamed: rawJATS.list() to rawJATS.get_list()

Added: rawJATS.lazy_abstract()
Added: rawJATS.lazy_article_id()
Added: rawJATS.lazy_pub_date()
Added: rawJATS.lazy_date()
Added: rawJATS.lazy_keyword_group()
Added: rawJATS.lazy_conflict()
Added: rawJATS.lazy_permissions()
Added: rawJATS.lazy_licence()
Added: rawJATS.lazy_subject_area()
Added: rawJATS.lazy_custom_meta()
Added: rawJATS.lazy_sub_display_channel()
Added: rawJATS.lazy_mixed_citations()
Added: rawJATS.lazy_object_id()
Added: rawJATS.lazy_pub_history()
Added: rawJATS.lazy_fn_group()
Added: rawJATS.lazy_media()
Added: rawJATS.lazy_inline_graphic()
Added: rawJATS.lazy_graphic()
Added: rawJATS.lazy_self_uri()
Added: rawJATS.lazy_supplementary_material()
Added: rawJATS.lazy_contrib_id()
Added: rawJATS.lazy_phone()
Added: rawJATS.lazy_bio()
Added: rawJATS.lazy_volume()
Added: rawJATS.lazy_issue()
Added: rawJATS.lazy_elocation_id()
Added: rawJATS.lazy_fpage()
Added: rawJATS.lazy_lpage()
Added: rawJATS.lazy_collab()
Added: rawJATS.lazy_publisher_loc()
Added: rawJATS.lazy_publisher_name()
Added: rawJATS.lazy_comment()
Added: rawJATS.lazy_element_citation()
Added: rawJATS.lazy_etal()
lAdded: rawJATS.azy_pub_id()
Added: rawJATS.lazy_source()
Added: rawJATS.lazy_surname()
Added: rawJATS.lazy_given_names()
Added: rawJATS.lazy_suffix()
Added: rawJATS.lazy_ext_link()
Added: rawJATS.lazy_uri()
Added: rawJATS.lazy_edition()
Added: rawJATS.lazy_version()
Added: rawJATS.lazy_chapter_title()
Added: rawJATS.lazy_data_title()
Added: rawJATS.lazy_conf_name()
Added: rawJATS.lazy_date_in_citation()
Added: rawJATS.lazy_patent()
Added: rawJATS.lazy_app_group()
Added: rawJATS.lazy_section()
Added: rawJATS.lazy_paragraph()
Added: rawJATS.lazy_math()
Added: rawJATS.lazy_boxed_text()
Added: rawJATS.lazy_funding_group()
Added: rawJATS.lazy_string_name()

Added: parseJATS.lazy_full_custom_meta()
Added: parseJATS.lazy_abstracts()
Added: parseJATS.lazy_contrib_inline_aff()
Added: parseJATS.lazy_full_award_group_funding_source()
Added: parseJATS.lazy_award_group_award_id()
Added: parseJATS.lazy_body_blocks()

Added: utils.peek()
Added: utils.lazy_paragraphs()
Added: utils.lazy_remove_doi_paragraph()
Added: utils.lazy_extract_nodes()
Added: utils.lazy_extract_previous_nodes()
Added: utils.lazy_extract_previous_siblings()

Code merged in PR #435

elifetools 0.38.0

18 Nov 03:13
890fefc
Compare
Choose a tag to compare
elifetools 0.38.0 Pre-release
Pre-release

Modified: parseJATS.body_blocks() to find tags in a potentially faster way
Modified: utils.component_acting_parent_tag() potentially find tags in a faster way
Added: utils.extract_previous_nodes() to find tags in soup.previous_elements
Added: utils.extract_previous_nodes() to find tags in soup.previous_siblings
Modified: utils.first_parent() refactored the lambda to a list comprehension
Modified: utils.tag_ordinal() to use extract_previous_nodes()
Modified: utils.tag_fig_ordinal() to use extract_previous_nodes() and refactored the lambda to a list comprehension
Modified: utils.tag_sibling_ordinal() to use extract_previous_siblings()
Modified: utils.tag_media_sibling_ordinal() to use the new functions
Modified: utils.tag_supplementary_material_sibling_ordinal() to use the new functions

Code merged in PR #433

elifetools 0.37.1

10 Nov 02:17
47db478
Compare
Choose a tag to compare
elifetools 0.37.1 Pre-release
Pre-release

Modified: parseJATS.body_block_content() bug fix in case label_value is None when evaluating media as an animation

Code merged in PR #431

elifetools 0.37.0

10 Nov 01:39
27788e4
Compare
Choose a tag to compare
elifetools 0.37.0 Pre-release
Pre-release

Modified: parseJATS.body_block_content(), for media blocks, if animation is found in the label text then set loop to True, and autoplay to True, and continue to set these for .gif files for backwards compatibility

Code merged in PR #429

elifetools 0.36.0

06 Nov 21:42
281c57f
Compare
Choose a tag to compare
elifetools 0.36.0 Pre-release
Pre-release

Modified: parseJATS.contrib_xref() to use extract_nodes()
Modified: parseJATS.format_contrib_refs(), modified argument corresp_id_map contains data to use instead of querying the soup
Modified: parseJATS.format_contributor(), last three arguments changed (corresp_id_map, fn_id_map, and aff_id_map) to be maps of the tag id to tag object, instead of previously it accepted simple lists of tags
Modified: parseJATS.authors_non_byline(), linting only
Modified: parseJATS.format_authors(), creates the data maps to supply to format_contributor()
Modified: parseJATS.format_aff() to use the new extract_first_node() function
Modified: rawJATS.py to use the new extract_first_node() function
Added: utils.extract_first_node(), return the first node of name nodename and optionally matching an attribute value
Modified: utils.first_node_str_contents() to use the new extract_first_node() function

The changes should be fairly backwards compatible except for the argument changes to format_contrib_refs() and format_contributor()

Code merged in PR #427

elifetools 0.35.0

06 Nov 17:08
754a8fe
Compare
Choose a tag to compare
elifetools 0.35.0 Pre-release
Pre-release

Modified: utils.extract_nodes() to use .descendants instead of find_all()

Code merged in PR #425

elifetools 0.34.0

02 Nov 01:32
9064f03
Compare
Choose a tag to compare
elifetools 0.34.0 Pre-release
Pre-release

Added: parseJATS.format_author_non_byline_groups(), format the author group details for non-byline authors
Added: parseJATS.author_group_author_key(), generate an author group key
Modified: parseJATS.authors_non_byline() to potentially populate only the contributor data more efficiently
Modified: parseJATS.format_authors() to use the new functions when setting group author key values

The test cases are passing and these changes are expected to be backwards compatible for known XML.

Code merged in PR #423

elifetools 0.33.1

25 Oct 22:39
944c54c
Compare
Choose a tag to compare
elifetools 0.33.1 Pre-release
Pre-release

Modified: parseJATS.format_contrib_refs(), when formatting data for a corresponding author, only parse the phone or email if the parent corresp_tag can be found by its @id attribute

Code merged in PR #421

elifetools 0.33.0

04 Oct 00:58
15488f7
Compare
Choose a tag to compare
elifetools 0.33.0 Pre-release
Pre-release

Added: parseJATS.award_group_award_id_tags() to refactor existing functions finding <award-id> tags
Modified: parseJATS.full_award_groups(), includes award-id-type value in its output
Modified: parseJATS.award_group_award_id(), uses the new function parseJATS.award_group_award_id_tags() to find <award-id> tags

No breaking changes.

Code merged in PR #419