From: Dan Scott Date: Thu, 28 Jul 2011 20:41:09 +0000 (-0400) Subject: Reuse an existing 040 if possible X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2cd419d922e416d6c8c0f01a7f1878867ca7e691;p=contrib%2FConifer.git 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 --- 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