From e3c64dd1092b69610843e8a8fc969d5f0c309a58 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 7 Apr 2020 16:22:28 -0400 Subject: [PATCH] Capture more than just " /" from 245$h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit "‡h[microform] :" happens too Signed-off-by: Dan Scott --- tools/ebooks/prep_ebook_records.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.11.0