Skip to content

Releases: elifesciences/elife-cleaner

elifecleaner 0.41.0

13 Jun 01:59
46c5d56
Compare
Choose a tag to compare
elifecleaner 0.41.0 Pre-release
Pre-release

Modified: sub_article.EDITOR_REPORT_CONTRIB_TYPES constant, to use editors of type assoc_ed when setting authors of a <sub-article>

Depends on elifearticle==0.15.0 or better which will parse the data from the XML file used as input.

Code merged in PR #105

elifecleaner 0.40.0

12 Jun 23:29
357b8ae
Compare
Choose a tag to compare
elifecleaner 0.40.0 Pre-release
Pre-release

Modified: transform.transform_xml_history_tags() to keep particular <date> tags, instead of always removing the entire <history> tag
Added: transform KEEP_HISTORY_DATE_TYPES constant, a list of @date-type attributes on the <date> tags to keep

Code merged in PR #103

elifecleaner 0.39.0

12 Jun 21:43
ff4c8fa
Compare
Choose a tag to compare
elifecleaner 0.39.0 Pre-release
Pre-release

Modified: sub_article.format_content_json() to invoke transform_ordered_lists()
Added: sub_article.transform_ordered_lists() to convert ordered lists into p tags
Added: sub_article.copy_list_item_content() used in transform_ordered_lists() to copy the content from one tag to a new tag
Added: sub_article.list_tag_start_value() to get the @start attribute of a <list> tag, or return 1 if the attribute is not there

Use at least docmaptools==0.9.0 for best results, so the <list-item> content is wrapped in a <p> tag.

Code merged in PR #101

elifecleaner 0.38.0

07 Jun 02:49
bf79fe9
Compare
Choose a tag to compare
elifecleaner 0.38.0 Pre-release
Pre-release

Added: fig module with new logic for converting <p> content into a <fig> tag, if the particular sequence of paragraphs are found in the XML
Added: various functions to the utils module, and moved the NAMESPACE_MAP constant to there
Modified: video_xml module, moved the NAMESPACE_MAP constant and it imports it from the utils module
Modified: parse module to invoke the now common function utils.file_extension()

No expected backwards compatibility problems with previous versions of the library.

Code merged in PR #99

elifecleaner 0.37.0

19 May 17:40
f9880c1
Compare
Choose a tag to compare
elifecleaner 0.37.0 Pre-release
Pre-release

Added: prc.transform_journal_title_tag(), "replace journal-title tag in xml Element with names from file transformations list"
Added: prc.transform_publisher_name_tag(), "replace publisher-name tag in xml Element with names from file transformations list"
Added: prc.transform_journal_meta_tag(), "replace the text value of a tag in the journal meta", which is called by the above two functions

Code merged in PR #97

elifecleaner 0.36.0

16 May 15:17
1829bfe
Compare
Choose a tag to compare
elifecleaner 0.36.0 Pre-release
Pre-release

Modified: sub_article.format_content_json() to only keep content items which have html

Code merged in PR #95

elifecleaner 0.35.0

04 May 02:44
0a907b8
Compare
Choose a tag to compare
elifecleaner 0.35.0 Pre-release
Pre-release

Modified: sub_article.build_sub_article_object() to use the Article object property version_doi when generating peer review DOI values, if version_doi is non-empty, otherwise use its doi value

Code merged in PR #93

elifecleaner 0.34.0

03 May 23:59
a47ae96
Compare
Choose a tag to compare
elifecleaner 0.34.0 Pre-release
Pre-release

Modified: sub_article.sub_article_contributors() to only add particular types of editors to an editor-report <sub-article>
Added: sub_article.EDITOR_REPORT_CONTRIB_TYPES constant to specify which contrib types to add to an editor-report, used by the function above

Code merged in PR #91

elifecleaner 0.33.0

03 May 20:07
3f3a241
Compare
Choose a tag to compare
elifecleaner 0.33.0 Pre-release
Pre-release

Modified: prc.add_version_doi() changed in what order the version DOI <article-id> tag is added to the <article-meta>

Code merged in PR #89

elifecleaner 0.32.0

24 Apr 23:19
a145ab0
Compare
Choose a tag to compare
elifecleaner 0.32.0 Pre-release
Pre-release

Added: prc.version_doi_from_docmap() - find the latest preprint DOI from docmap
Added prc.next_version_doi() - generate the next version DOI value
Added: prc.add_version_doi() - add version article-id tag for the doi to article-meta tag

Code merged in PR #87