From 2cd419d922e416d6c8c0f01a7f1878867ca7e691 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 28 Jul 2011 16:41:09 -0400 Subject: [PATCH] Reuse an existing 040 if possible The switcharound left us still appending the 040 to the new record, which had no fields, rather than amending the existing 040 on the incoming record. 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 d7ef422909..993a4c57c8 100644 --- a/tools/ebooks/prep_ebook_records.py +++ b/tools/ebooks/prep_ebook_records.py @@ -290,7 +290,7 @@ def process_fields(record, options): new_record = pymarc.Record(to_unicode=True, force_utf8=True) - add_cat_source(new_record, options) # 040 + add_cat_source(record, options) # 040 add_restriction(record, options) # 506 # 590 -- 2.11.0