X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4cbcf8cac5e8cad592d9d84d76408249ccca8112..801a05d2ff33bb8a3c1a46ea0c657825b2787fa7:/src/search/templates/search/results.html diff --git a/src/search/templates/search/results.html b/src/search/templates/search/results.html index c6ea3836d..189d095e2 100644 --- a/src/search/templates/search/results.html +++ b/src/search/templates/search/results.html @@ -35,6 +35,12 @@ + {% if not hasresults %} +

+ Brak wyników. +

+ {% endif %} + {% if results.author %}

Autorzy

@@ -101,20 +107,22 @@
{% endif %} - {% if results.fragment or results.snippet %} + {% if results.snippet %}

W treści

- {% for f in results.snippet %} + {% for book, snippets in results.snippet.items %}
- {% for author in f.book.authors %} + {% for author in book.authors %} {{ author }} {% endfor %} - - {{ f.book.title }} - - - {{ f.headline|safe }} + + {{ book.title }} + {% for f in snippets %} + + {{ f.headline|safe }} + + {% endfor %}
{% endfor %}
@@ -132,7 +140,7 @@ {% endif %} - {% if pd_authors %} + {% if results.pdauthor or results.pdbook %}

Domena publiczna?

@@ -142,10 +150,32 @@ Dowiedz się, dlaczego biblioteki internetowe nie mogą udostępniać dzieł tego autora.

- {% for tag in pd_authors %} + {% for tag in results.pdauthor %}
{{ tag }} - Dzieła tego autora będą mogły być publikowane bez ograniczeń w roku {{ tag.goes_to_pd }}. + {% if tag.death %} + {% if tag.in_pd %} + Dzieła tego autora są w domenie publicznej i czekają na publikację. + {% else %} + Dzieła tego autora będą mogły być publikowane bez ograniczeń w roku {{ tag.goes_to_pd }}. + {% endif %} + {% else %} + Dzieła tego autora są objęte prawem autorskim. + {% endif %} +
+ {% endfor %} + {% for book in results.pdbook %} +
+ {{ book }} + {% if book.pd %} + {% if book.in_pd %} + Ten utwór jest w domenie publicznej i czeka na publikację. + {% else %} + Ten utwór będzie mógł być publikowany bez ograniczeń w roku {{ book.pd }}. + {% endif %} + {% else %} + Ten utwór nie jest jeszcze w domenie publicznej. + {% endif %}
{% endfor %}