-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
#
from collections import OrderedDict
import random
t for t in self.ctx['tags']
if t is not self.ctx['main_tag']
]
+ if len(self.ctx['tags']) == 1 and self.ctx['main_tag'].category == 'author':
+ self.ctx['translation_list'] = self.ctx['main_tag'].book_set.all()
def get_queryset(self):
qs = Book.tagged.with_all(self.ctx['work_tags']).filter(findable=True)
return render(request, 'catalogue/book_text.html', {
'book': book,
+ 'extra_info': book.get_extra_info_json(),
'book_text': book_text,
- 'inserts': DynamicTextInsert.get_all(request)
+ 'inserts': DynamicTextInsert.get_all(request),
+
+ 'club': Club.objects.first(),
+ 'donation_form': DonationStep1Form(),
})