Support for source names, developmentStage.
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_wide.html
1 {% extends "catalogue/book_short.html" %}
2 {% load i18n %}
3 {% load download_audio tag_list custom_pdf_link_li license_icon source_name from catalogue_tags %}
4 {% load cite_promo from social_tags %}
5
6
7 {% block box-class %}book-wide-box{% endblock %}
8
9
10 {% block cover-area-extra %}
11 {% if extra_info.license %}
12     {% license_icon extra_info.license %}
13 {% endif %}
14 {% endblock %}
15
16
17
18 {% block book-box-extra-info %}
19 {% if themes %}
20     <div class="hidden-box-wrapper" id="theme-list-wrapper">
21         <p><a class="mono hidden-box-trigger theme-list-link"
22                 href="#">{% trans "Motifs and themes" %}</a></p>
23         <div class="hidden-box">
24             <ul>
25             {% for theme in themes %}
26                 <li><a href="{% url 'book_fragments' book.slug theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
27             {% endfor %}
28             </ul>
29         </div>
30     </div>
31 {% else %}
32         <p>&nbsp;</p>
33 {% endif %}
34 {% endblock %}
35
36
37 {% block right-column %}
38 <div class="right-column">
39     <div class="quote">
40   {% cite_promo book 1 %}
41   </div>
42
43   <div class="other-tools">
44     <h2 class="mono">{% trans "See" %}</h2>
45     <ul class="plain">
46       {% if extra_info.source_url %}
47       <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}
48         {% trans "in" %} {% source_name extra_info.source_url %}</li>
49       {% endif %}
50       <li><a href="{{ book.xml_file.url }}">{% trans "Source XML file" %}</a></li>
51       {% if extra_info.about and not hide_about %}
52       <li>{% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
53       {% endif %}
54       {% if book.gazeta_link %}
55       <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
56       {% endif %}
57       {% if book.wiki_link %}
58       <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
59       {% endif %}
60       <li><a href="{% url 'poem_from_book' book.slug %}">{% trans "Mix this book" %}</a></li>
61     </ul>
62   </div>
63   <div class="other-download">
64     <h2 class="mono">{% trans "Download" %}</h2>
65     <ul class="plain">
66       <li>
67         {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
68         {% trans "Download all audiobooks for this book" %}:
69             {% download_audio book %}. 
70         {% endif %}
71       </li>
72       {% custom_pdf_link_li book %}
73     </ul>
74   </div>
75 </div>
76 {% endblock %}