This should help with identifying problem records.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
new_record.add_field(field)
if not marked_isbn:
- print("No matching ISBN target found in SFX for %s" %
- (new_record['856']['u'])
- )
+ try:
+ isbn = record['020']['a']
+ print("ISBN: [%s] - no matching ISBN target found in SFX for %s" %
+ (isbn, new_record['856']['u'])
+ )
+ except:
+ print("No matching ISBN target found in SFX for %s" %
+ (new_record['856']['u'])
+ )
return new_record