add search to bookmedia admin
[wolnelektury.git] / wolnelektury / templates / catalogue / book_text.html
1 {% load i18n %}
2 {% load chunks compressed catalogue_tags %}
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
6     <head>
7         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8         <title>{% block title %}WolneLektury.pl{% endblock %}</title>
9         <link rel="icon" href="{{ STATIC_URL }}img/favicon.png" type="image/x-icon" />
10         {% compressed_css "book" %}
11         {% compressed_js "jquery" %}
12         {% compressed_js "book" %}
13     </head>
14     <body>
15         <div id="menu">
16             <ul>
17                 <li><a href="#toc">{% trans "Table of contents" %}</a></li>
18                 <li><a href="#themes">{% trans "Themes" %}</a></li>
19                 <li><a href="#nota_red">{% trans "Edit. note" %}</a></li>
20                 <li><a href="#info">{% trans "Infobox" %}</a></li>
21             </ul>
22         </div>
23         <div id="info">
24             <p>
25                 {% if book.get_extra_info_value.license %}
26                     {% trans "This work is licensed under:" %}
27                     <a href="{{ book.get_extra_info_value.license }}">{{ book.get_extra_info_value.license_description }}</a>
28                 {% else %}
29                     {% blocktrans %}This work isn't covered by copyright and is part of the
30                     public domain, which means it can be freely used, published and
31                     distributed. If there are any additional copyrighted materials
32                     provided with this work (such as annotations, motifs etc.), those
33                     materials are licensed under the 
34                     <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0</a>
35                     license.{% endblocktrans %}
36                 {% endif %}
37             </p>
38     
39             {% if book.get_extra_info_value.source_name %}
40               <p>{% trans "Text prepared based on:" %} {{ book.get_extra_info_value.source_name }}</p>
41             {% endif %}
42     
43             {% if book.get_extra_info_value.description %}
44               <p>{{ book.get_extra_info_value.description }}</p>
45             {% endif %}
46
47             {% if book.get_extra_info_value.editor or book.get_extra_info_value.technical_editor %}
48               <p>{% trans "Edited and annotated by:" %}
49                   {% all_editors book.get_extra_info_value %}.</p>
50             {% endif %}
51
52
53
54             <xsl:if test="//dc:description" >
55               <p><xsl:value-of select="//dc:description" /></p>
56             </xsl:if>
57     
58             <xsl:call-template name="editors" />
59         </div>
60         <div id="header">
61             <div id="logo">
62                 <a href="/"><img src="{{ STATIC_URL }}img/logo.png" alt="WolneLektury.pl - logo" /></a>
63             </div>
64         </div>
65         <div id="themes">
66             <ol>
67                 {% for theme, fragments in book_themes %}
68                 <li>{{ theme }}:
69                     {% for fragment in fragments %}
70                         <a href="#m{{ fragment.anchor }}">{{ forloop.counter }}</a>
71                     {% endfor %}
72                 <li>
73                 {% endfor %}
74             </ol>
75         </div>
76         {{ book.html_file.read|safe }}
77         <script type="text/javascript">
78         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
79         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
80         </script>
81         <script type="text/javascript">
82         var pageTracker = _gat._getTracker("UA-2576694-1");
83         pageTracker._trackPageview();
84         </script>
85     </body>
86 </html>