Ebooks: Only output one record, no matter how many dupes
authorDan Scott <dscott@laurentian.ca>
Thu, 4 Oct 2012 22:17:12 +0000 (18:17 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 8 May 2013 13:44:07 +0000 (09:44 -0400)
commitd3df418218aa6135b563f46d89291ea89ffe48e4
treef8f11d489265281efa8a5020b802662ac8fe1309
parent1276f9c8627b9cb853cc2839a719ee811ba8c3c7
Ebooks: Only output one record, no matter how many dupes

If you specify dupe-checking by TCN, URL, and ISBN, you only want to
generate one output record per input record, no matter how many types of
matches you get - so short-circuit the logic.

Also, handle the case where you're not specifying all dupe checks :)

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