From: Jan Szejko  {{ response_data.message }} {{ response_data.message }} 
+      {% url "api" as u %}
+      {% blocktrans with u=u|build_absolute_uri:request %}
+        WolneLektury.pl API resides under  
-{% url "api" as u %}
-{% blocktrans with u=u|build_absolute_uri:request %}
-WolneLektury.pl API resides under  
+      {% blocktrans %}
+        Default data serialization format is
+        JSON,
+        but you can also use XML by appending  
-{% blocktrans %}
-Default data serialization format is
-JSON, 
-but you can also use XML by appending  
+      {% blocktrans %}
+        The URLs in WolneLektury.pl API are:
+      {% endblocktrans %}
+     
-{% blocktrans %}
-The URLs in WolneLektury.pl API are:
-{% endblocktrans %}
- 
+      {% url "api_book" "studnia-i-wahadlo" as e1 %}
+      {% url "api_tag" "authors" "edgar-allan-poe" as e2 %}
+      {% blocktrans %}
+        Each element of those lists contains a link (in a "href") attibute
+        which points to individual resource's details, i.e.:
+        {{e1}} or
+        {{e2}}.
+      {% endblocktrans %}
+     
-{% url "api_book" "studnia-i-wahadlo" as e1 %}
-{% url "api_tag" "authors" "edgar-allan-poe" as e2 %}
-{% blocktrans %}
-Each element of those lists contains a link (in a "href") attibute
-which points to individual resource's details, i.e.:
-{{e1}} or
-{{e2}}.
-{% endblocktrans %}
- 
+      {% blocktrans with "/api/authors/adam-mickiewicz/kinds/liryka/books/" as e %}
+        You can combine authors, epochs, genres and kinds to find only books matching
+        those criteria. For instance:
+        {{e}}.
+      {% endblocktrans %}
+     
-{% blocktrans with "/api/authors/adam-mickiewicz/kinds/liryka/books/" as e %}
-You can combine authors, epochs, genres and kinds to find only books matching
-those criteria. For instance:
-{{e}}.
-{% endblocktrans %}
- 
+      {% blocktrans with "/api/authors/adam-mickiewicz/kinds/liryka/parent_books/" as e %}
+        If you only want top-level books and not all the children, you can use /parent_books/, as in:
+        {{e}}.
+      {% endblocktrans %}
+     
-{% blocktrans with "/api/authors/adam-mickiewicz/kinds/liryka/parent_books/" as e %}
-If you only want top-level books and not all the children, you can use /parent_books/, as in:
-{{e}}.
-{% endblocktrans %}
- 
-{% url "api_fragment" "sen-nocy-letniej" "1290526312912-3814598192" as f %}
-{% blocktrans with "/api/authors/william-shakespeare/themes/zabawa/fragments/" as e %}
-The same way, using also books and themes, you can search for a list of fragments:
-{{e}}. 
-Again, each entry has a "href" attribute which links to the fragment's details, i.e.:
-{{f}}. 
-{% endblocktrans %}
- 
+      {% url "api_fragment" "sen-nocy-letniej" "1290526312912-3814598192" as f %}
+      {% blocktrans with "/api/authors/william-shakespeare/themes/zabawa/fragments/" as e %}
+        The same way, using also books and themes, you can search for a list of fragments:
+        {{e}}.
+        Again, each entry has a "href" attribute which links to the fragment's details, i.e.:
+        {{f}}.
+      {% endblocktrans %}
+     
-    {% if book.extra_info.license %}
-        {% trans "This work is licensed under:" %}
-        {{ book.extra_info.license_description }}
-    {% 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
-        distributed. If there are any additional copyrighted materials
-        provided with this work (such as annotations, motifs etc.), those
-        materials are licensed under the 
-        Creative Commons Attribution-ShareAlike 3.0
-        license.{% endblocktrans %}
-    {% endif %}
+  {% if book.extra_info.license %}
+    {% trans "This work is licensed under:" %}
+    {{ book.extra_info.license_description }}
+  {% 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
+    distributed. If there are any additional copyrighted materials
+    provided with this work (such as annotations, motifs etc.), those
+    materials are licensed under the
+    Creative Commons Attribution-ShareAlike 3.0
+    license.{% endblocktrans %}
+  {% endif %}
  {% if is_picture %}
-        {% trans "Edited by:" %}
+   
+    {% if is_picture %}
+      {% trans "Edited by:" %}
     {% else %}
-        {% trans "Edited and annotated by:" %}
+      {% trans "Edited and annotated by:" %}
     {% endif %}
-      {% all_editors book.extra_info %}.{{ title }}
 
 
 
 API
 
-API
+  {{ u }}.
+        You can use it to access information about books, their fragments and
+        their metadata.
+      {% endblocktrans %}
+    {{ u }}.
-You can use it to access information about books, their fragments and
-their metadata.
-{% endblocktrans %}
-?format=xml
+        query parameter to each URL.
+      {% endblocktrans %}
+    ?format=xml
-query parameter to each URL.
-{% endblocktrans %}
-
+        
+
-    
-{% trans "Other versions" %}:
-{% for rel in book.other_versions %}
-    {% cache 86400 book_mini_box rel.pk %}
-      {% include 'catalogue/book_mini_box.html' with book=rel %}
-    {% endcache %}
-    {#% ssi_include 'catalogue_book_mini' pk=rel.pk %#}
-{% endfor %}
-{% trans "See also" %}:
-{% related_books book taken=book.other_versions|length %}
-{% trans "Themes" %}
-    {% plain_list themes book=book %}
-{% endif %}
-{% endwith %}
-
-
-
-{% trans "Information about the work" %}
-{% for tag in tags %}
-        {% trans "Other versions" %}:
+        {% for rel in book.other_versions %}
+          {% cache 86400 book_mini_box rel.pk %}
+            {% include 'catalogue/book_mini_box.html' with book=rel %}
+          {% endcache %}
+          {#% ssi_include 'catalogue_book_mini' pk=rel.pk %#}
+        {% endfor %}
+      {% trans "See also" %}:
+      {% related_books book taken=book.other_versions|length %}
+    {% trans "Themes" %}
+      {% plain_list themes book=book %}
+    {% endif %}
+  {% endwith %}
+
+
+  {% trans "Information about the work" %}
+  {% for tag in tags %}
+    
-{% endfor %}
-
-
-      {% if extra_info.source_url %}
-      {% trans "Theme" %}
-    	{{ theme }}
-    	
-    
{% trans "in work " %}
-    	{{ book }}{% trans "Theme" %}
+    {{ theme }}
+    
+  
{% trans "in work " %}
+    {{ book }}
{% trans "Publication funded by:" %} - {% for funder in book.extra_info.funders %}{{ funder }}{% if not forloop.last %}, {% else %}.{% endif %}{% endfor %} +
+ {% trans "Publication funded by:" %} + {% for funder in book.extra_info.funders %}{{ funder }}{% if not forloop.last %}, {% else %}.{% endif %}{% endfor %}
{% endif %} {% if book.extra_info.cover_by %} -{% trans "Cover image by:" %} - - {{ book.extra_info.cover_by }}.
++ {% trans "Cover image by:" %} + {{ book.extra_info.cover_by }}. +
{% endif %} diff --git a/src/catalogue/templates/catalogue/book_list.html b/src/catalogue/templates/catalogue/book_list.html index e29cd50ec..b5c3b60ca 100644 --- a/src/catalogue/templates/catalogue/book_list.html +++ b/src/catalogue/templates/catalogue/book_list.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base/base.html" %} {% load i18n %} {% load catalogue_tags %} {% load ssi_include from ssify %} @@ -8,14 +8,13 @@ {% block titleextra %}{% trans "Listing of all works" %}{% endblock %} {% block body %} -{% spaceless %} - + {% spaceless %}
+   
+      
         {% trans "Download the catalogue in PDF format." %}
-    {% trans "All works" %}
+  {% trans "Literature" %}
     {% plain_list books by_author=True paged=False initial_blocks=True %}
@@ -25,7 +24,5 @@
 
     {% trans "Gallery" %}
     {% plain_list pictures by_author=True paged=False initial_blocks=True %}
-
-
-    
{% trans "The criteria are ambiguous. Please select one of the following options:" %}
+{% trans "The criteria are ambiguous. Please select one of the following options:" %}
- {{ fragment.get_short_text|safe }} + {{ fragment.get_short_text|safe }}
{{ fragment.book.pretty_title }}
- + {% endif %} diff --git a/src/catalogue/templates/catalogue/fragment_short.html b/src/catalogue/templates/catalogue/fragment_short.html index b5921f215..935a1a545 100644 --- a/src/catalogue/templates/catalogue/fragment_short.html +++ b/src/catalogue/templates/catalogue/fragment_short.html @@ -2,25 +2,25 @@ {% load book_title_html from catalogue_tags %}- - {{ fragment.short_text|safe }} - -- â {% trans "Expand fragment" %} â + {% if fragment.short_text %} + - {% endif %} -
- + {{ fragment.text|safe }} - +- {% if fragment.short_text %} - â {% trans "Hide fragment" %} â - {% endif %} -
{% book_title_html fragment.book %}
+ {% if fragment.short_text %} + â {% trans "Hide fragment" %} â + {% endif %} +{% book_title_html fragment.book %}
{% trans "Work is licensed under " %} {{ picture.info.license_description }}.
+ {% endif %} +{% trans "Based on" %}: {{ picture.info.source_name }}
+ {% if picture.info.description %} +{% trans "Work is licensed under " %} {{ picture.info.license_description }}.
+