X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e3f2ee9b6cc5c2c5dca70829cb640dda9cb825e9..1ca64302e8447c9715ab42dd1a33075f312e6059:/src/catalogue/templates/catalogue/tagged_object_list.html diff --git a/src/catalogue/templates/catalogue/tagged_object_list.html b/src/catalogue/templates/catalogue/tagged_object_list.html index 9a3455d26..9af03f51e 100644 --- a/src/catalogue/templates/catalogue/tagged_object_list.html +++ b/src/catalogue/templates/catalogue/tagged_object_list.html @@ -3,17 +3,13 @@ {% load catalogue_tags switch_tag social_tags %} {% load ssi_include from ssify %} -{% block titleextra %}{% if tags %}{% title_from_tags tags %}{% elif gallery %}{% trans "Gallery" %}{% else %}{% trans "Literature" %}{% endif %}{% endblock %} +{% block titleextra %}{% if tags %}{% title_from_tags tags %}{% elif list_type == 'gallery' %}{% trans "Gallery" %}{% elif list_type == 'audiobooks' %}{% trans "Audiobooks" %}{% else %}{% trans "Literature" %}{% endif %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %}
-

{% if tags %} - {% html_title_from_tags tags %} - {% elif gallery %}{% trans "Gallery" %}{% else %}{% trans "Literature" %} - {% endif %} -

+

{% if tags %}{% html_title_from_tags tags %}{% endif %}

{% trans "Authors" %} @@ -21,99 +17,109 @@ {% trans "Genres" %} {% trans "Kinds" %} {% if theme_is_set %} - {% trans "Themes" %} + {% trans "Themes" %} {% endif %}
-
+
- {% inline_tag_list categories.author tags 'author' gallery=gallery %} + {% inline_tag_list categories.author tags 'author' list_type=list_type %}
- {% inline_tag_list categories.epoch tags 'epoch' gallery=gallery %} + {% inline_tag_list categories.epoch tags 'epoch' list_type=list_type %}
- {% inline_tag_list categories.genre tags 'genre' gallery=gallery %} + {% inline_tag_list categories.genre tags 'genre' list_type=list_type %}
- {% inline_tag_list categories.kind tags 'kind' gallery=gallery %} + {% inline_tag_list categories.kind tags 'kind' list_type=list_type %}
{% if theme_is_set %}
- {% inline_tag_list categories.theme tags 'theme' gallery=gallery %} + {% inline_tag_list categories.theme tags 'theme' list_type=list_type %}
{% endif %}
+{% if list_type == 'books' and not tags %} +
+

{% trans "Recent publications" %}

+ {% for book in last_published %} + {% ssi_include 'catalogue_book_mini' pk=book.pk %} + {% endfor %} + {% trans "More recent publications" %} +
+
+

{% trans "Most popular books" %}

+ {% for book in most_popular %} + {% ssi_include 'catalogue_book_mini' pk=book.pk %} + {% endfor %} +
+{% endif %} - - - {% if theme_is_set %} - {% work_list object_list %} - {% else %} +{% if theme_is_set %} + {% work_list object_list %} +{% else %}
{% if object_list %} {% work_list best %} {% if tags %}

{% trans "All matching works" %}

{% else %} -

{% trans "All works" %}

+ {% if list_type == 'audiobooks' %} +

{% trans "Listing of all audiobooks" %}

+ {% else %} +

{% trans "All works" %}

+ {% endif %} + {% endif %} + {% plain_list object_list by_author=True list_type=list_type %} + {% if daisy %} +

{% trans "DAISY files" %}

+ {% plain_list daisy by_author=True %} {% endif %} - {% plain_list object_list by_author=True gallery=gallery %} {% else %} {% trans "Sorry! Search cirteria did not match any resources." %} {% include "info/join_us.html" %} {% endif %}
- - - -{% if categories.theme %} -

{% trans "Motifs and themes" %}

- {% plain_list categories.theme choice=tags gallery=gallery %} -{% endif %} - - + {% if categories.theme and list_type != 'audiobooks' %} +

{% trans "Motifs and themes" %}

+ {% plain_list categories.theme choice=tags list_type=list_type %} + {% endif %} {% endif %} - - - {% for tag in tags %} +{% for tag in tags %} {% if tag.category != 'set' %} -

{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}

+

{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}

- {% if tag.has_description %} - {{ tag.description|safe }} - {% else %} - {% trans "No description." %} - {% endif %} + {% if tag.has_description %} + {{ tag.description|safe }} + {% else %} + {% trans "No description." %} + {% endif %}
{% if tag.gazeta_link %} -
- {{ tag }} {% trans "in Lektury.Gazeta.pl" %} -
+
+ {{ tag }} {% trans "in Lektury.Gazeta.pl" %} +
{% endif %} {% if tag.wiki_link %} -
- - {{ tag }} {% trans "in Wikipedia" %} -
+
+ + {{ tag }} {% trans "in Wikipedia" %} +
{% endif %} {% if tag.culturepl_link %} -
- - {{ tag }} {% trans "in Culture.pl" %} -
+
+ + {{ tag }} {% trans "in Culture.pl" %} +
{% endif %} {% endif %} - {% endfor %} - - - - +{% endfor %} {% endblock %}