{% endif %}
</div>
-
-
- {% if results.author %}
+ {% if results.title %}
<div class="book-list-header">
<div class="book-box-inner">
- <p>{% trans "Results by authors" %}</p>
+ <p>{% trans "Results by title" %}</p>
</div>
</div>
<div>
<ol class="work-list">
- {% for author in results.author %}<li class="Book-item">{% book_short author.book %}</li>{% endfor %}
+ {% for result in results.title %}<li class="Book-item">
+ {% book_short result.book %}
+ </li>{% endfor %}
</ol>
</div>
{% endif %}
-
- {% if results.translator %}
+
+ {% if results.author %}
<div class="book-list-header">
<div class="book-box-inner">
- <p>{% trans "Results by translators" %}</p>
+ <p>{% trans "Results by authors" %}</p>
</div>
</div>
<div>
<ol class="work-list">
- {% for translator in results.translator %}<li class="Book-item">{% book_short translator.book %}</li>{% endfor %}
+ {% for author in results.author %}<li class="Book-item">{% book_short author.book %}</li>{% endfor %}
</ol>
</div>
{% endif %}
- {% if results.title %}
+ {% if results.translator %}
<div class="book-list-header">
<div class="book-box-inner">
- <p>{% trans "Results by title" %}</p>
+ <p>{% trans "Results by translators" %}</p>
</div>
</div>
<div>
<ol class="work-list">
- {% for result in results.title %}<li class="Book-item">
- {% book_short result.book %}
- </li>{% endfor %}
+ {% for translator in results.translator %}<li class="Book-item">{% book_short translator.book %}</li>{% endfor %}
</ol>
</div>
{% endif %}