+
+
+@register.inclusion_tag('catalogue/book_wide.html')
+def book_wide(book):
+ tags = book.tags.filter(category__in=('author', 'kind', 'genre', 'epoch'))
+ tags = split_tags(tags)
+
+ 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)
+
+ extra_info = book.get_extra_info_value()
+
+ return locals()