fix in librarian
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_info.html
index 670679e..e245335 100755 (executable)
@@ -2,9 +2,9 @@
 {% load catalogue_tags %}
 
 <p>
-    {% if book.get_extra_info_value.license %}
+    {% if book.extra_info.license %}
         {% trans "This work is licensed under:" %}
-        <a href="{{ book.get_extra_info_value.license }}">{{ book.get_extra_info_value.license_description }}</a>
+        <a href="{{ book.extra_info.license }}">{{ book.extra_info.license_description }}</a>
     {% else %}
         {% blocktrans %}This work isn't covered by copyright and is part of the
         public domain, which means it can be freely used, published and
     {% endif %}
 </p>
 
-{% if book.get_extra_info_value.source_name %}
-  <p>{% trans "Text prepared based on:" %} {{ book.get_extra_info_value.source_name }}</p>
+{% if book.extra_info.source_name %}
+  <p>{% trans "Resource prepared based on:" %} {{ book.extra_info.source_name }}</p>
 {% endif %}
 
-{% if book.get_extra_info_value.description %}
-  <p>{{ book.get_extra_info_value.description }}</p>
+{% if book.extra_info.description %}
+  <p>{{ book.extra_info.description }}</p>
 {% endif %}
 
-{% if book.get_extra_info_value.editor or book.get_extra_info_value.technical_editor %}
-  <p>{% trans "Edited and annotated by:" %}
-      {% all_editors book.get_extra_info_value %}.</p>
+{% if book.extra_info.editor or book.extra_info.technical_editor %}
+  <p>{% if is_picture %}
+        {% trans "Edited by:" %}
+    {% else %}
+        {% trans "Edited and annotated by:" %}
+    {% endif %}
+      {% all_editors book.extra_info %}.</p>
+{% endif %}
+
+{% if book.extra_info.funders %}
+  <p>{% trans "Publication funded by:" %}
+      {% for funder in book.extra_info.funders %}{{ funder }}{% if not forloop.last %}, {% else %}.{% endif %}{% endfor %}
+  </p>
+{% endif %}
+
+{% if book.extra_info.cover_by %}
+  <p>{% trans "Cover image by:" %}
+      <a href="{{ book.extra_info.cover_source }}">
+      {{ book.extra_info.cover_by }}</a>.</p>
 {% endif %}