-
- {% with tags|last as last_tag %}
- {% if last_tag.has_description %}
-
-
{{ last_tag.description|safe }}
-
{{ last_tag.description|safe|truncatewords_html:40 }}
+
+
{% if tags %}{% html_title_from_tags tags %}{% endif %}
+
+
- {% endif %}
+
-
-
- {% if categories.author %}
-
-
-
- {% inline_tag_list categories.author tags %}
-
-
- {% endif %}
- {% if categories.kind %}
-
-
-
- {% inline_tag_list categories.kind tags %}
-
-
- {% endif %}
- {% if categories.genre %}
-
-
-
- {% inline_tag_list categories.genre tags %}
-
-
- {% endif %}
- {% if categories.epoch %}
-
-
-
- {% inline_tag_list categories.epoch tags %}
-
-
- {% endif %}
-
- {% if categories.theme %}
-
- {% endif %}
+
+
+ {% inline_tag_list categories.author tags 'author' list_type=list_type %}
-
-
-
-
- {% if theme_is_set %}
-
- {% if last_tag.gazeta_link or last_tag.wiki_link %}
-
{% trans "See also" %}:
-
- {% endif %}
+
+ {% inline_tag_list categories.epoch tags 'epoch' list_type=list_type %}
+
+
+ {% inline_tag_list categories.genre tags 'genre' list_type=list_type %}
+
+
+ {% inline_tag_list categories.kind tags 'kind' list_type=list_type %}
+
+ {% if theme_is_set %}
+
+ {% inline_tag_list categories.theme tags 'theme' list_type=list_type %}
{% endif %}
-
-
-
+
+
+{% if list_type == 'books' and not tags %}
+
+
+ {% 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 object_list %}
+ {% work_list best %}
+ {% if tags %}
+
{% trans "All matching works" %}
+ {% else %}
+ {% 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 %}
+ {% else %}
+ {% trans "Sorry! Search cirteria did not match any resources." %}
+ {% include "info/join_us.html" %}
+ {% endif %}
+ {% if categories.theme and list_type != 'audiobooks' %}
+
{% trans "Motifs and themes" %}
+ {% plain_list categories.theme choice=tags list_type=list_type %}
+ {% endif %}
-
- {% if theme_is_set %}
- {% work_list object_list %}
- {% else %}
-
- {% choose_cite tag_ids=tag_ids as cite_promo_pk %}
- {% choose_fragment tag_ids=tag_ids unless=cite_promo_pk as fragment_promo_pk %}
- {{ cite_promo_pk.if }}
- {% ssi_include 'social_cite' pk=cite_promo_pk %}
- {{ cite_promo_pk.endif }}
- {{ fragment_promo_pk.if }}
- {% ssi_include 'catalogue_fragment_promo' pk=fragment_promo_pk %}
- {{ fragment_promo_pk.endif }}
+{% endif %}
-
- {% if last_tag.gazeta_link or last_tag.wiki_link %}
-
{% trans "See also" %}:
-
+{% for tag in tags %}
+ {% if tag.category != 'set' %}
+
{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}
+
+ {% if tag.has_description %}
+ {{ tag.description|safe }}
+ {% else %}
+ {% trans "No description." %}
{% endif %}
-
- {% comment %}
-
{% trans "Download" %}:
-
- {% endcomment %}
-
+ {% if tag.gazeta_link %}
+
{% endif %}
-
-
-
-
-
-
-
- {% if not theme_is_set %}
-
- {% if object_list %}
- {% work_list object_list %}
- {% else %}
- {% trans "Sorry! Search cirteria did not match any resources." %}
- {% include "info/join_us.html" %}
+ {% if tag.wiki_link %}
+
+ {% endif %}
+ {% if tag.culturepl_link %}
+
{% endif %}
-
{% endif %}
- {% endwith %}
+{% endfor %}
+
{% endblock %}