From: Marcin Koziej Date: Fri, 2 Nov 2012 13:26:10 +0000 (+0100) Subject: Make title results first X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/d2536ed5c7d858a7af888569c740d44644b3a9cb?hp=c2dba41b331a28fb7de510ca0e79d00e95bec99b Make title results first --- diff --git a/apps/catalogue/templates/catalogue/search_multiple_hits.html b/apps/catalogue/templates/catalogue/search_multiple_hits.html index 37243023d..696271fee 100644 --- a/apps/catalogue/templates/catalogue/search_multiple_hits.html +++ b/apps/catalogue/templates/catalogue/search_multiple_hits.html @@ -46,45 +46,43 @@ {% endif %} - - - {% if results.author %} + {% if results.title %}
-

{% trans "Results by authors" %}

+

{% trans "Results by title" %}

    - {% for author in results.author %}
  1. {% book_short author.book %}
  2. {% endfor %} + {% for result in results.title %}
  3. + {% book_short result.book %} +
  4. {% endfor %}
{% endif %} - - {% if results.translator %} + + {% if results.author %}
-

{% trans "Results by translators" %}

+

{% trans "Results by authors" %}

    - {% for translator in results.translator %}
  1. {% book_short translator.book %}
  2. {% endfor %} + {% for author in results.author %}
  3. {% book_short author.book %}
  4. {% endfor %}
{% endif %} - {% if results.title %} + {% if results.translator %}
-

{% trans "Results by title" %}

+

{% trans "Results by translators" %}

    - {% for result in results.title %}
  1. - {% book_short result.book %} -
  2. {% endfor %} + {% for translator in results.translator %}
  3. {% book_short translator.book %}
  4. {% endfor %}
{% endif %}