From: Dan Scott Date: Tue, 7 Apr 2020 20:22:28 +0000 (-0400) Subject: Capture more than just " /" from 245$h X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Ftools_current;p=contrib%2FConifer.git Capture more than just " /" from 245$h "‡h[microform] :" happens too Signed-off-by: Dan Scott --- diff --git a/tools/ebooks/prep_ebook_records.py b/tools/ebooks/prep_ebook_records.py index d04e650bba..31dfdf213f 100755 --- a/tools/ebooks/prep_ebook_records.py +++ b/tools/ebooks/prep_ebook_records.py @@ -605,10 +605,10 @@ def process_fields(record, options): # Strip out GMD elif field.tag == "245": if "h" in field: - # Grab the trailing " /" + # Grab the trailing " /" or " :" or whatever suffix = field["h"][-2:] field.delete_subfield("h") - if suffix == " /": + if suffix != "].": field["a"] = field["a"] + suffix new_record.add_ordered_field(field) else: