- formats = {}
- # files generated during publication
- for ebook_format in book.ebook_formats:
- if book.has_media(ebook_format):
- formats[ebook_format] = book.get_media(ebook_format)
+ theme_counter = book.theme_counter
+ book_themes = Tag.objects.filter(pk__in=theme_counter.keys())
+ for tag in book_themes:
+ tag.count = theme_counter[tag.pk]
+ extra_info = book.get_extra_info_value()
+ hide_about = extra_info.get('about', '').startswith('http://wiki.wolnepodreczniki.pl')