- return {
- 'related': book.related_info(),
- 'book': book,
- 'main_link': book.get_absolute_url(),
- 'request': context.get('request'),
- 'hits': zip(*hits)[1],
- 'main_link': book.get_absolute_url(),
- }
+ ctx = book_short(context, book)
+ ctx['hits'] = hits and zip(*hits)[1] or []
+ return ctx