Reuse an existing 040 if possible
authorDan Scott <dan@coffeecode.net>
Thu, 28 Jul 2011 20:41:09 +0000 (16:41 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 7 May 2013 18:36:41 +0000 (14:36 -0400)
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 <dscott@laurentian.ca>
tools/ebooks/prep_ebook_records.py

index d7ef422..993a4c5 100644 (file)
@@ -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