- book_themes = book.related_themes()
- extra_info = book.extra_info
- hide_about = extra_info.get('about', '').startswith('http://wiki.wolnepodreczniki.pl')
- stage_note, stage_note_url = book.stage_note()
-
- return {
- 'book': book,
- 'main_link': reverse('book_text', args=[book.slug]) if book.html_file else None,
- 'related': book.related_info(),
- 'extra_info': extra_info,
- 'hide_about': hide_about,
- 'themes': book_themes,
- 'request': context.get('request'),
- 'show_lang': book.language_code() != settings.LANGUAGE_CODE,
- 'stage_note': stage_note,
- 'stage_note_url': stage_note_url,
- }
+ ctx = book_short(context, book)
+ ctx['extra_info'] = book.extra_info
+ ctx['hide_about'] = ctx['extra_info'].get('about', '').startswith('http://wiki.wolnepodreczniki.pl')
+ ctx['themes'] = book.related_themes()
+ ctx['main_link'] = reverse('book_text', args=[book.slug]) if book.html_file else None
+ return ctx