Releases: elifesciences/elife-cleaner
elifecleaner 0.41.0
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
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
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
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
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
Modified: sub_article.format_content_json()
to only keep content items which have html
Code merged in PR #95
elifecleaner 0.35.0
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
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
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
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