srs_metadata_cleaning.py
def sifting_metadata_for_volume_info(list_of_row_lists):
    """
    Sifts full title values in metadata records for which
    to look for keywords relevant to potential volume information.

    Parameters
    ----------
    list_of_row_lists: list
        A list of the metadata records returned
        from the original CSV.

    Returns
    ----------
    check_full_titles_for_volume_info: list
        A list with values indicating whether the full title fields
        need to be checked for volume information manually.
    """

    full_title_list = []
    check_full_titles_for_volume_info = []

    for row in list_of_row_lists:
        full_title = row[1]
        clean_full_title = str(full_title).lower()
        cleaner_full_title = clean_full_title.replace("\n", "")
        cleanest_full_title = cleaner_full_title.replace(" ", "")
        full_title_list.append(cleanest_full_title)

    for title in full_title_list:
        if "volume" in title:
            check_for_volume_info = "YES"
            check_full_titles_for_volume_info.append(check_for_volume_info)
        elif "vol." in title:
            check_for_volume_info = "YES"
            check_full_titles_for_volume_info.append(check_for_volume_info)
        else:
            check_for_volume_info = "N"
            check_full_titles_for_volume_info.append(check_for_volume_info)


    return check_full_titles_for_volume_info

    Sifts full title values in metadata records for which
    to look for keywords relevant to potential volume information.

    Parameters
    ----------
    list_of_row_lists: list
        A list of the metadata records returned
        from the original CSV.

    Returns
    ----------
    check_full_titles_for_volume_info: list
        A list with values indicating whether the full title fields
        need to be checked for volume information manually.
    
Sifts full title values in metadata records for which
to look for keywords relevant to potential volume information.
Sifts full title values in metadata records for which to look for keywords relevant to potential volume information .
def sifting_metadata_for_volume_info(list_of_row_lists):
    full_title_list = []
    check_full_titles_for_volume_info = []
    for row in list_of_row_lists:
        full_title = row[1]
        clean_full_title = str(full_title).lower()
        cleaner_full_title = clean_full_title.replace("\n", "")
        cleanest_full_title = cleaner_full_title.replace(" ", "")
        full_title_list.append(cleanest_full_title)
    for title in full_title_list:
        if "volume" in title:
            check_for_volume_info = "YES"
            check_full_titles_for_volume_info.append(check_for_volume_info)
        elif "vol." in title:
            check_for_volume_info = "YES"
            check_full_titles_for_volume_info.append(check_for_volume_info)
        else:
            check_for_volume_info = "N"
            check_full_titles_for_volume_info.append(check_for_volume_info)
    return check_full_titles_for_volume_info
def sifting_metadata_for_volume_info ( list_of_row_lists ) : full_title_list = [ ] check_full_titles_for_volume_info = [ ] for row in list_of_row_lists : full_title = row [ 1 ] clean_full_title = str ( full_title ) . lower ( ) cleaner_full_title = clean_full_title . replace ( "\n" , "" ) cleanest_full_title = cleaner_full_title . replace ( " " , "" ) full_title_list . append ( cleanest_full_title ) for title in full_title_list : if "volume" in title : check_for_volume_info = "YES" check_full_titles_for_volume_info . append ( check_for_volume_info ) elif "vol." in title : check_for_volume_info = "YES" check_full_titles_for_volume_info . append ( check_for_volume_info ) else : check_for_volume_info = "N" check_full_titles_for_volume_info . append ( check_for_volume_info ) return check_full_titles_for_volume_info
Sifts full title values in metadata records for which
to look for keywords relevant to potential volume information.
Sifts full title values in metadata records for which to look for keywords relevant to potential volume information .
"""
    Sifts full title values in metadata records for which
    to look for keywords relevant to potential volume information.

    Parameters
    ----------
    list_of_row_lists: list
        A list of the metadata records returned
        from the original CSV.

    Returns
    ----------
    check_full_titles_for_volume_info: list
        A list with values indicating whether the full title fields
        need to be checked for volume information manually.
    """
list_of_row_lists
A list of the metadata records returned
from the original CSV.
A list of the metadata records returned from the original CSV .
Returns

None
----------

None
check_full_titles_for_volume_info
A list with values indicating whether the full title fields
need to be checked for volume information manually.
A list with values indicating whether the full title fields need to be checked for volume information manually .