Releases: elifesciences/elife-cleaner
elifecleaner 0.61.0
Removed: prc.transform_elocation_id()
not used anymore
Removed: ELOCATION_ID_MATCH_PATTERN
constant
Removed: ELOCATION_ID_REPLACEMENT_PATTERN
constant
Kept the ELOCATION_ID_PRC_TERM
constant for using it to check for PRC elocation-id values.
Code merged in PR #148
elifecleaner 0.60.0
Added: prc.elocation_id_from_docmap()
, from the docmap get the elocation-id volume
Code merged in PR #146
elifecleaner 0.59.0
Added: transform.cover_art_file_list()
, get a list of cover_art from the XML with @file-type="cover_art"
Added: transform.transform_cover_art_files()
, change the cover art file names and modify the XML
Added: transform.STRIKING_IMAGE_FILE_NAME_PATTERN
constant for generating new cover art / striking image file names
Added: transform.striking_image_file_name()
, generate a new name for the striking image
Added: transform.cover_art_file_transformations()
to get a list of old file name to new file name transformations
elifecleaner 0.58.0
Modified: sub_article.sub_article_data()
added argument generate_dois
Modified: sub_article.format_content_json()
added argument generate_dois
, and if it is not true, then the doi
of each peer review from the docmap will be used for the peer review Article object DOI, instead of generating new DOI values for them
Code merged in PR #141
elifecleaner 0.57.0
Modified: sub_article.sub_article_data()
includes an optional version_doi
argument, and if supplied it will get sub article data from the docmap for that specific version
Requires at least docmaptools>=0.18.0
for the argument to be available
Code merged in PR #139
elifecleaner 0.56.0
Modified: prc.volume_from_docmap()
to get the volume value from the docmap volumeIdentifier
Removed: prc.volume_from_history_data()
, no longer required to calculate a volume from a date
Removed: prc.START_YEAR
constant which was used to calculate a volume from a date
Code merged in PR #137
elifecleaner 0.55.0
elifetools 0.54.0
Added: utils.remove_tags()
, remove tags with name tag_name from ElementTree
Modified: sub_article.format_content_json()
remove hr
tags from sub article XML
Code merged in PR #131
elifecleaner 0.53.0
Added: table.tsv_to_list()
, convert Tab Separated Value (TSV) string to a list
Added: table.list_to_table_xml()
, convert list of rows into table XML
Code merged in PR #129
elifecleaner 0.52.0
Modified: fig.py
module, moved many functions to the new block.py
module so they can be re-used:
FIG_LABEL_CONTENT_PATTERN
constantmatch_fig_label_content()
is_p_label()
is_p_inline_graphic()
strip_tag_text()
strip_tag_tail()
inline_graphic_tag_from_tag()
sub_article_tag_parts()
set_label_tag()
split_title_parts()
title_paragraph_content()
caption_title_paragraph()
set_caption_tag()
set_graphic_tag()
Added: block.py
module, holds functions to parse and generate block tags like <fig>
and <table-wrap>
Added: table.py
module for table-specific functions
Code merged in PR #127