From: Dan Scott Date: Tue, 17 Apr 2018 18:08:29 +0000 (-0400) Subject: Ensure the leader says we are a text record X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2a0f232e90f6b1a8226cbb9c553a17bcda9c2aaa;p=contrib%2FConifer.git Ensure the leader says we are a text record Of course, we might want to revisit this with an option to support serials as well. Signed-off-by: Dan Scott --- diff --git a/tools/ebooks/prep_ebook_records.py b/tools/ebooks/prep_ebook_records.py index d386d7945a..becf553fa4 100755 --- a/tools/ebooks/prep_ebook_records.py +++ b/tools/ebooks/prep_ebook_records.py @@ -469,7 +469,8 @@ def process_fields(record, options): """Decide which fields to add, delete, and keep""" new_record = pymarc.Record(to_unicode=True, force_utf8=True) - new_record.leader = record.leader + leader = record.leader[:6] + 'a' + record.leader[7:] + new_record.leader = leader add_cat_source(record, options) # 040