Remove obsolete jsonfield dependency.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_info.html
1 {% load i18n %}
2 {% load catalogue_tags %}
3
4 {% with extra_info=book.get_extra_info_json %}
5 <p>
6   {% if extra_info.license %}
7     {% trans "This work is licensed under:" %}
8     <a href="{{ extra_info.license }}">{{ extra_info.license_description }}</a>
9   {% else %}
10     {% blocktrans %}This work isn't covered by copyright and is part of the
11     public domain, which means it can be freely used, published and
12     distributed. If there are any additional copyrighted materials
13     provided with this work (such as annotations, motifs etc.), those
14     materials are licensed under the
15     <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0</a>
16     license.{% endblocktrans %}
17   {% endif %}
18 </p>
19
20 {% if extra_info.source_name %}
21   <p>{% trans "Resource prepared based on:" %} {{ extra_info.source_name }}</p>
22 {% endif %}
23
24 {% if extra_info.description %}
25   <p>{{ extra_info.description }}</p>
26 {% endif %}
27
28 {% if extra_info.editor or extra_info.technical_editor %}
29   <p>
30     {% if is_picture %}
31       {% trans "Edited by:" %}
32     {% else %}
33       {% trans "Edited and annotated by:" %}
34     {% endif %}
35     {% all_editors extra_info %}.
36   </p>
37 {% endif %}
38
39 {% if extra_info.publisher %}
40   <p>
41     {% trans "Publisher:" %}
42     {{ book.publisher }}
43   </p>
44 {% endif %}
45
46 {% if extra_info.funders %}
47   <p>
48     {% trans "Publication funded by:" %}
49     {% for funder in extra_info.funders %}{{ funder }}{% if not forloop.last %}, {% else %}.{% endif %}{% endfor %}
50   </p>
51 {% endif %}
52
53 {% if extra_info.cover_by %}
54   <p>
55     {% trans "Cover image by:" %}
56     <a href="{{ extra_info.cover_source }}">{{ extra_info.cover_by }}</a>.
57   </p>
58 {% endif %}
59
60 {% if extra_info.isbn_html %}
61   <p>
62     {{ extra_info.isbn_html }}
63   </p>
64 {% endif %}
65
66 {% endwith %}