projects
/
contrib
/
Conifer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e60108d
)
Reuse an existing 040 if possible
author
Dan Scott
<dan@coffeecode.net>
Thu, 28 Jul 2011 20:41:09 +0000
(16:41 -0400)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/tools/ebooks/prep_ebook_records.py
b/tools/ebooks/prep_ebook_records.py
index
d7ef422
..
993a4c5
100644
(file)
--- 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