fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make title results first
[wolnelektury.git]
/
apps
/
catalogue
/
templates
/
catalogue
/
search_multiple_hits.html
diff --git
a/apps/catalogue/templates/catalogue/search_multiple_hits.html
b/apps/catalogue/templates/catalogue/search_multiple_hits.html
index
3724302
..
696271f
100644
(file)
--- a/
apps/catalogue/templates/catalogue/search_multiple_hits.html
+++ b/
apps/catalogue/templates/catalogue/search_multiple_hits.html
@@
-46,45
+46,43
@@
{% endif %}
</div>
{% endif %}
</div>
-
-
- {% if results.author %}
+ {% if results.title %}
<div class="book-list-header">
<div class="book-box-inner">
<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">
</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 %}
</ol>
</div>
{% endif %}
-
- {% if results.
translat
or %}
+
+ {% if results.
auth
or %}
<div class="book-list-header">
<div class="book-box-inner">
<div class="book-list-header">
<div class="book-box-inner">
- <p>{% trans "Results by
translat
ors" %}</p>
+ <p>{% trans "Results by
auth
ors" %}</p>
</div>
</div>
<div>
<ol class="work-list">
</div>
</div>
<div>
<ol class="work-list">
- {% for
translator in results.translator %}<li class="Book-item">{% book_short translat
or.book %}</li>{% endfor %}
+ {% for
author in results.author %}<li class="Book-item">{% book_short auth
or.book %}</li>{% endfor %}
</ol>
</div>
{% endif %}
</ol>
</div>
{% endif %}
- {% if results.t
itle
%}
+ {% if results.t
ranslator
%}
<div class="book-list-header">
<div class="book-box-inner">
<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">
</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 %}
</ol>
</div>
{% endif %}