From 68f21622eb28525d849d34df21882714818c95ce Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 31 Jan 2024 12:32:03 +0100 Subject: [PATCH 1/1] fix --- src/catalogue/fields.py | 2 +- src/catalogue/templates/catalogue/viewer_base.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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' %}