Ebooks: handle multiple dupe options
authorDan Scott <dscott@laurentian.ca>
Thu, 4 Oct 2012 21:17:04 +0000 (17:17 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 12 Nov 2012 17:58:03 +0000 (12:58 -0500)
commitc5cb09161bc40f3389670d2164f7747c04bd52ce
tree89fdb02386f1401b1c66d481e534bd61d07e4dd9
parentfdc4a9505ed34112d191ffde4896953ffbcb4d41
Ebooks: handle multiple dupe options

process_fields() modifies the base record, and we were inadvertently
running the base record through the ringer every time we checked for
dupes - which would be evidenced by the addition of one 506 and 590 per
consortial member per dupe check we ran.

In the process of cleaning this up, try to dedupe some of our own code
(heh). We can probably go futher but this is a good start.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/ebooks/prep_ebook_records.py