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 %}
- {% 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 %}
+
{% 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 %}
-
- {% 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 %}
-