From b536e5e3e37b28d2d2032619f152df473ed3d7d5 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 15 Jun 2015 09:32:52 +0200 Subject: [PATCH] epub: fix cover title --- telemeta/views/epub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telemeta/views/epub.py b/telemeta/views/epub.py index da8b0ca9..dde884ba 100644 --- a/telemeta/views/epub.py +++ b/telemeta/views/epub.py @@ -56,6 +56,7 @@ class BaseEpubMixin(TelemetaBaseMixin): site = Site.objects.get_current() self.chapters = [] default_image_added = False + full_title = corpus.title + ' - ' + collection.title if not collection: self.filename = self.corpus.code @@ -182,7 +183,7 @@ class BaseEpubMixin(TelemetaBaseMixin): self.book.spine.insert(0,'nav') # create spin, add cover page as first page - cover = epub.EpubHtml(title='cover-bis', file_name='cover-bis' + '.xhtml') + cover = epub.EpubHtml(title=full_title, file_name='cover-bis' + '.xhtml') cover.content = render_to_string(self.template_cover, {'image': cover_filename}) self.book.add_item(cover) self.book.spine.insert(0, cover) -- 2.39.5