fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
very minor fix
[wolnelektury.git]
/
src
/
catalogue
/
views.py
diff --git
a/src/catalogue/views.py
b/src/catalogue/views.py
index
503b6f5
..
267d9b4
100644
(file)
--- a/
src/catalogue/views.py
+++ b/
src/catalogue/views.py
@@
-788,9
+788,14
@@
def collections(request):
def ridero_cover(request, slug):
def ridero_cover(request, slug):
- from librarian.cover import
DefaultEbookC
over
+ from librarian.cover import
make_c
over
wldoc = Book.objects.get(slug=slug).wldocument()
wldoc = Book.objects.get(slug=slug).wldocument()
- cover =
DefaultEbookC
over(wldoc.book_info, width=980, bleed=20, format='PNG')
+ cover =
make_c
over(wldoc.book_info, width=980, bleed=20, format='PNG')
response = HttpResponse(content_type="image/png")
cover.save(response)
return response
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))