X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..a9925ebffe713307d6bedecd670df1490aa206c8:/src/catalogue/templates/catalogue/search_multiple_hits.html diff --git a/src/catalogue/templates/catalogue/search_multiple_hits.html b/src/catalogue/templates/catalogue/search_multiple_hits.html index 24a7a7930..937b9266d 100644 --- a/src/catalogue/templates/catalogue/search_multiple_hits.html +++ b/src/catalogue/templates/catalogue/search_multiple_hits.html @@ -1,137 +1,130 @@ -{% extends "base.html" %} +{% extends "base/base.html" %} {% load i18n %} {% load pagination_tags %} {% load inline_tag_list from catalogue_tags %} {% load book_searched from search_tags %} -{% load ssi_include from ssify %} +{% load set_get_parameter %} {% block titleextra %}{% trans "Search" %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %} - {% if did_you_mean %} - {% trans "Did you mean" %} {{did_you_mean|lower}}? - {% endif %} - -
- {% if tags.author %} -
-

{% trans "Authors" %}:

- {% for tag in tags.author %} - - {% ssi_include "catalogue_tag_box" pk=tag.pk %} - + +

{% trans "Search" %}

+ +
+ +

+ format: + {% if not set.format %}dowolny{% else %}dowolny{% endif %} + {% if set.format == "tekst" %}tekst{% else %}tekst{% endif %} + {% if set.format == "audio" %}audiobook{% else %}audiobook{% endif %} + {% if set.format == "synchro" %}DAISY{% else %}DAISY{% endif %} + {% if set.format == "obraz" %}obraz{% else %}obraz{% endif %} +

+ +

+ {% trans "language" %}: + {% if not set.lang %}dowolny{% else %}dowolny{% endif %} + {% if set.lang == "pol" %}polski{% else %}polski{% endif %} + {% if set.lang == "eng" %}angielski{% else %}angielski{% endif %} + {% if set.lang == "fre" %}francuski{% else %}francuski{% endif %} + {% if set.lang == "ger" %}niemiecki{% else %}niemiecki{% endif %} + {% if set.lang == "lit" %}litewski{% else %}litewski{% endif %} +

+ +

+

+ {% trans "epoch" %}: + {% if not set.epoch %}dowolna{% else %}dowolna{% endif %} + + {% for tag in tags.epoch %} + {% if set.epoch == tag.slug %} + {{ tag.name }} + {% else %} + + {{ tag.name }} + + {% endif %} {% endfor %} -

- {% endif %} - {% if tags.kind %} -
-

{% trans "Kinds" %}:

+

+

+ {% trans "kind" %}: + {% if not set.kind %}dowolny{% else %}dowolny{% endif %} {% for tag in tags.kind %} - - {% ssi_include "catalogue_tag_box" pk=tag.pk %} - - {% endfor %} -

- {% endif %} - {% if tags.genre %} -
-

{% trans "Genres" %}:

- {% for tag in tags.genre %} - - {% ssi_include "catalogue_tag_box" pk=tag.pk %} - - {% endfor %} -
- {% endif %} - {% if tags.epoch %} -
-

{% trans "Epochs" %}:

- {% for tag in tags.epoch %} - - {% ssi_include "catalogue_tag_box" pk=tag.pk %} - + {% if set.kind == tag.slug %} + {{ tag.name }} + {% else %} + + {{ tag.name }} + + {% endif %} {% endfor %} -
- {% endif %} -
- - {% if results.title %} -
-
-

{% trans "Results by title" %}

-
-
-
-
    - {% for result in results.title %}
  1. - {% ssi_include 'catalogue_book_short' pk=result.book.pk %} -
  2. {% endfor %} -
-
- {% endif %} +

- {% if results.author %} -
-
-

{% trans "Results by authors" %}

-
-
-
-
    - {% for author in results.author %}
  1. {% ssi_include 'catalogue_book_short' pk=author.book.pk %}
  2. {% endfor %} -
-
- {% endif %} + {% comment %} +

+ {% trans "genre" %}: + {% if not set.genre %}dowolny{% else %}dowolny{% endif %} + {% for tag in tags.genre %} + {% if set.genre == tag.slug %} + {{ tag.name }} + {% else %} + + {{ tag.name }} + + {% endif %} + {% endfor %} +

+ {% endcomment %} +
- {% if results.translator %} -
-
-

{% trans "Results by translators" %}

+ {% if did_you_mean %} + {% trans "Did you mean" %} + {{did_you_mean|lower}}? + {% endif %} +
+ {% if pd_authors %} +
+ {% for author in pd_authors %} +
+ {% include "pdcounter/pd_author_box.html" %} +
+ {% endfor %}
-
-
-
    - {% for translator in results.translator %}
  1. {% ssi_include 'catalogue_book_short' pk=translator.book.pk %}
  2. {% endfor %} -
-
{% endif %} +
- {% if results.content %} -
-
-

{% trans "Results in text" %}

-
-
-
-
    - {% for result in results.content %} -
  1. - {% book_searched result %} -
  2. - {% endfor %} -
-
+
+ {% if books %} + {% endif %} - {% if results.other %} -
-
-

{% trans "Other results" %}

-
-
-
-
    - {% for result in results.other %} -
  1. - {% book_searched result %} -
  2. - {% endfor %} -
-
+ {% if pictures %} +

{% trans "Art" %}

+ {% endif %} - - - +
{% endblock %}