X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0dc56b4d4622e08b88ba9189501de265d1e6ae08..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 5ee0f415d..937b9266d 100644 --- a/src/catalogue/templates/catalogue/search_multiple_hits.html +++ b/src/catalogue/templates/catalogue/search_multiple_hits.html @@ -3,139 +3,128 @@ {% 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 %} + +

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

+

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

+ + {% 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 did_you_mean %} {% trans "Did you mean" %} {{did_you_mean|lower}}? {% endif %} - -
- {% if tags.author %} +
+ {% if pd_authors %}
-

{% trans "Authors" %}:

- {% for tag in tags.author %} - - {% include "catalogue/tag_box.html" %} - - {% endfor %} -
- {% endif %} - {% if tags.kind %} -
-

{% trans "Kinds" %}:

- {% for tag in tags.kind %} - - {% include "catalogue/tag_box.html" %} - - {% endfor %} -
- {% endif %} - {% if tags.genre %} -
-

{% trans "Genres" %}:

- {% for tag in tags.genre %} - - {% include "catalogue/tag_box.html" %} - - {% endfor %} -
- {% endif %} - {% if tags.epoch %} -
-

{% trans "Epochs" %}:

- {% for tag in tags.epoch %} - - {% include "catalogue/tag_box.html" %} - + {% for author in pd_authors %} +
+ {% include "pdcounter/pd_author_box.html" %} +
{% endfor %}
{% endif %}
- {% if results.title %} -
-
-

{% trans "Results by title" %}

-
-
-
-
    - {% for result in results.title %} +
    + {% if books %} +
      + {% if pictures %} +

      {% trans "Books" %}

      + {% endif %} + {% for result in books %}
    • - {% ssi_include 'catalogue_book_short' pk=result.book.pk %} +
      + {% book_searched result %} +
    • {% 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 %} - - {% if results.translator %} -
-
-

{% trans "Results by translators" %}

-
-
-
-
    - {% 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 %} -
-
- {% endif %} + + {% endif %} - {% if results.other %} -
-
-

{% trans "Other results" %}

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

    {% trans "Art" %}

    +
      + {% for result in pictures %} +
    • +
      + {% with result.picture as picture %} + {% include "picture/picture_searched.html" %} + {% endwith %} +
    • {% endfor %} -
-
- {% endif %} + + {% endif %} +
{% endblock %}