From d2536ed5c7d858a7af888569c740d44644b3a9cb Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Fri, 2 Nov 2012 14:26:10 +0100 Subject: [PATCH 1/1] Make title results first --- .../catalogue/search_multiple_hits.html | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) 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 %} -- 2.20.1