+
+
+
+
+ {% block body %}
+ {% endblock %}
+
+ From 3c0e373447323b5e33b273859e790a2054771afa Mon Sep 17 00:00:00 2001
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 }}
-{% block extra %}{% endblock %}
+ {% block extra %}{% endblock %}
diff --git a/src/ajaxable/templates/ajaxable/form_on_page.html b/src/ajaxable/templates/ajaxable/form_on_page.html
index 8e495234a..e5c27a807 100755
--- a/src/ajaxable/templates/ajaxable/form_on_page.html
+++ b/src/ajaxable/templates/ajaxable/form_on_page.html
@@ -1,18 +1,18 @@
-{% extends "base.html" %}
+{% extends "base/base.html" %}
{% load i18n %}
{% block titleextra %}{{ title }}{% endblock %}
{% block body %}
-
+
{% endblock %}
diff --git a/src/api/templates/api/main.html b/src/api/templates/api/main.html
index 04244dc91..67ff426fe 100755
--- a/src/api/templates/api/main.html
+++ b/src/api/templates/api/main.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "base/base.html" %}
{% load i18n %}
{% load build_absolute_uri from fnp_common %}
@@ -7,91 +7,90 @@
{% block bodyid %}api{% endblock %}
{% block body %}
+
- {% include ajax_template %}
+ {% include ajax_template %}
- {% if response_data.message %}
-
+ API
-API
+
+
{% endblock %}
diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html
index 308318161..4f590ce79 100644
--- a/src/catalogue/templates/catalogue/book_detail.html
+++ b/src/catalogue/templates/catalogue/book_detail.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "base/base.html" %}
{% load i18n %}
{% load common_tags catalogue_tags %}
{% load ssify %}
@@ -13,68 +13,71 @@
{% block bodyid %}book-detail{% endblock %}
{% block body %}
-
-{% ssi_include 'catalogue_book_wide' pk=book.pk %}
-
-{% work_list book_children %}
-
-{% spaceless %}
-{% if book.other_versions %}
-{{ 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 %}
-
-
+ {% ssi_include 'catalogue_book_wide' pk=book.pk %}
+
+ {% work_list book_children %}
+
+ {% spaceless %}
+ {% if book.other_versions %}
+
+ {% endfor %}
+
+
+ {% if extra_info.source_url %}
+ {% 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 "Source" %} {% trans "of the book" %}
- {% trans "in" %} {% source_name extra_info.source_url %}
- {% endif %}
-
- {% if extra_info.about and not hide_about %}
- {% trans "Book on" %} {% trans "Editor's Platform" %}
- {% endif %}
- {% if book.gazeta_link %}
-
- {% endif %}
- {% if book.wiki_link %}
-
- {% endif %}
-
-
-
-
+
+
+ {% trans "Source" %} {% trans "of the book" %}
+ {% trans "in" %} {% source_name extra_info.source_url %}
+
+ {% endif %}
+
+ {% if extra_info.about and not hide_about %}
+
+ {% trans "Book on" %} {% trans "Editor's Platform" %}
+
+ {% endif %}
+ {% if book.gazeta_link %}
+
+ {% endif %}
+ {% if book.wiki_link %}
+
+ {% endif %}
+
{% endblock %}
diff --git a/src/catalogue/templates/catalogue/book_fragments.html b/src/catalogue/templates/catalogue/book_fragments.html
index d46f869d8..7696c149f 100644
--- a/src/catalogue/templates/catalogue/book_fragments.html
+++ b/src/catalogue/templates/catalogue/book_fragments.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "base/base.html" %}
{% load i18n %}
{% load work_list from catalogue_tags %}
@@ -7,14 +7,14 @@
{% block bodyid %}tagged-object-list{% endblock %}
{% block body %}
-
-
+ {% trans "Theme" %}
- {{ theme }}
-
-
{% trans "in work " %}
- {{ book }}
+
- {% trans "Theme" %}
+ {{ theme }}
+
+
{% trans "in work " %}
+ {{ book }}
- {% work_list fragments %}
-
+
+ {% work_list fragments %}
+
{% endblock %}
diff --git a/src/catalogue/templates/catalogue/book_info.html b/src/catalogue/templates/catalogue/book_info.html
index e245335ee..5b67ad631 100755
--- a/src/catalogue/templates/catalogue/book_info.html
+++ b/src/catalogue/templates/catalogue/book_info.html
@@ -2,18 +2,18 @@
{% load catalogue_tags %}
{% 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 }}.
+