X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..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 3df560a6f..9af03f51e 100644 --- a/src/catalogue/templates/catalogue/tagged_object_list.html +++ b/src/catalogue/templates/catalogue/tagged_object_list.html @@ -3,165 +3,123 @@ {% load catalogue_tags switch_tag social_tags %} {% load ssi_include from ssify %} -{% block titleextra %}{% title_from_tags tags %}{% 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 %} -
-
-

{% html_title_from_tags tags %}

- - {% with tags|last as last_tag %} - {% if last_tag.has_description %} -
- -
{{ last_tag.description|safe|truncatewords_html:40 }}
+
+

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

+ + - {% endif %} +
-
-
- {% if categories.author %} -
-
{% trans "Authors" %}:
-
- {% inline_tag_list categories.author tags %} -
-
- {% endif %} - {% if categories.kind %} -
-
{% trans "Kinds" %}:
-
- {% inline_tag_list categories.kind tags %} -
-
- {% endif %} - {% if categories.genre %} -
-
{% trans "Genres" %}:
-
- {% inline_tag_list categories.genre tags %} -
-
- {% endif %} - {% if categories.epoch %} -
-
{% trans "Epochs" %}:
-
- {% inline_tag_list categories.epoch tags %} -
-
- {% endif %} - - {% if categories.theme %} -
-

- {% trans "Motifs and themes" %}

-
- {% tag_list categories.theme tags %} -
-
- {% 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 "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 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 %}