From 0556b78886a1972dd0d091fdaec0fd65395e4717 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 7 Feb 2018 11:58:57 -0500 Subject: [PATCH] Off-by-one error in 008 munging Signed-off-by: Dan Scott --- tools/ebooks/prep_ebook_records.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ebooks/prep_ebook_records.py b/tools/ebooks/prep_ebook_records.py index 1bb80cbb0c..d613ec7eba 100755 --- a/tools/ebooks/prep_ebook_records.py +++ b/tools/ebooks/prep_ebook_records.py @@ -516,7 +516,7 @@ def process_fields(record, options): elif field.tag == '008' and field.value()[23] != 's': fixed_field = pymarc.Field( tag='008', - data=field.value()[:22] + 's' + field.value()[24:] + data=field.value()[:23] + 's' + field.value()[24:] ) new_record.add_ordered_field(fixed_field) else: -- 2.11.0