check for image in exact match scenario

This commit is contained in:
Lee 2011-04-19 12:53:03 +08:00
parent acb26328c8
commit 112168f3f6

View file

@ -245,7 +245,7 @@ def sort_ovrdrv_results(self, raw, title=None, title_tokens=None, author=None, a
else:
creators = creators.split(', ')
# if an exact match in a preferred format occurs
if (author and creators[0] == author[0]) and od_title == title and int(formatid) in [1, 50, 410, 900]:
if (author and creators[0] == author[0]) and od_title == title and int(formatid) in [1, 50, 410, 900] and thumbimage:
return self.format_results(reserveid, od_title, subtitle, series, publisher,
creators, thumbimage, worldcatlink, formatid)
else: