From: Radek Czajka Date: Wed, 31 Jan 2024 11:32:03 +0000 (+0100) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/68f21622eb28525d849d34df21882714818c95ce?hp=a0f904af83bea5306b09fd66d8dfa254761f5a07 fix --- diff --git a/src/catalogue/fields.py b/src/catalogue/fields.py index 087fe0d88..94bdb6097 100644 --- a/src/catalogue/fields.py +++ b/src/catalogue/fields.py @@ -306,7 +306,7 @@ class HtmlField(EbookField): book = fieldfile.instance - html_output = self.transform(book.wldocument(parse_dublincore=False)) + html_output = self.transform(book.wldocument(parse_dublincore=False), book) # Delete old fragments, create from scratch if necessary. book.fragments.all().delete() diff --git a/src/catalogue/templates/catalogue/viewer_base.html b/src/catalogue/templates/catalogue/viewer_base.html index 108fca615..a62cdd7c7 100644 --- a/src/catalogue/templates/catalogue/viewer_base.html +++ b/src/catalogue/templates/catalogue/viewer_base.html @@ -15,7 +15,6 @@ {% tracking_code %} - {% annoy_banner_blackout %} {% annoy_banner 'top' %}