From: Jan Szejko Date: Thu, 14 Dec 2017 08:43:33 +0000 (+0100) Subject: Merge branch 'api' X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/63f861861578b33416a0b2d801252b27443fabde?hp=a04dc488f5fea78a2a51bde4b59b4aad50cf3204 Merge branch 'api' --- diff --git a/doc/schema.xml b/doc/schema.xml index a2027810f..56172d3ec 100644 --- a/doc/schema.xml +++ b/doc/schema.xml @@ -135,10 +135,16 @@ - + + + + + + + @@ -266,6 +272,12 @@ + + + + + +
- {% if tags.author %} + {% if tags %}
-

{% 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 %} + {% for tag in tags %} {% include "catalogue/tag_box.html" %} @@ -58,84 +26,15 @@ {% 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 %} - - {% 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 %} +
      + {% for result in results %}
    • - {% book_searched result %} +
      + {% book_searched result %} +
    • {% endfor %} -
+
- {% endif %} - - {% if results.other %} -
-
-

{% trans "Other results" %}

-
-
-
-
    - {% for result in results.other %} -
  1. - {% book_searched result %} -
  2. - {% endfor %} -
-
- {% endif %} {% endblock %} diff --git a/src/catalogue/templates/catalogue/snippets/jplayer.html b/src/catalogue/templates/catalogue/snippets/jplayer.html index 860c2b6db..e3c88c14c 100644 --- a/src/catalogue/templates/catalogue/snippets/jplayer.html +++ b/src/catalogue/templates/catalogue/snippets/jplayer.html @@ -2,7 +2,7 @@ {% if audiobooks %}