+
+
+def ridero_cover(request, slug):
+ from librarian.cover import DefaultEbookCover
+ wldoc = Book.objects.get(slug=slug).wldocument()
+ cover = DefaultEbookCover(wldoc.book_info, width=980, bleed=20, format='PNG')
+ response = HttpResponse(content_type="image/png")
+ cover.save(response)
+ return response
+
+
+def get_isbn(request, book_format, slug):
+ book = Book.objects.get(slug=slug)
+ return HttpResponse(book.extra_info.get('isbn_%s' % book_format))