fix
authorRadek Czajka <rczajka@rczajka.pl>
Wed, 31 Jan 2024 11:32:03 +0000 (12:32 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Wed, 31 Jan 2024 11:32:03 +0000 (12:32 +0100)
src/catalogue/fields.py
src/catalogue/templates/catalogue/viewer_base.html

index 087fe0d..94bdb60 100644 (file)
@@ -306,7 +306,7 @@ class HtmlField(EbookField):
 
         book = fieldfile.instance
 
 
         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()
 
         # Delete old fragments, create from scratch if necessary.
         book.fragments.all().delete()
index 108fca6..a62cdd7 100644 (file)
@@ -15,7 +15,6 @@
     {% tracking_code %}
   </head>
   <body id="{% block body-id %}reader{% endblock %}">
     {% tracking_code %}
   </head>
   <body id="{% block body-id %}reader{% endblock %}">
-    {% annoy_banner_blackout %}
     {% annoy_banner 'top' %}
     <nav id="no-menu"><ul>
       <li><a href="#" id="menu-toggle-on"></a></li>
     {% annoy_banner 'top' %}
     <nav id="no-menu"><ul>
       <li><a href="#" id="menu-toggle-on"></a></li>