Update to new librarian api for html, txt.
[wolnelektury.git] / src / search / templates / search / results.html
index fcd05b6..2902f26 100644 (file)
@@ -1,5 +1,5 @@
 {% extends "base.html" %}
-
+{% load i18n %}
 
 {% block main %}
   <main class="l-main">
       </div>
     {% endif %}
 
-    {% if results.art %}
-      <div class="l-container">
-        <h2 class="header">{% trans "Obrazy" %}</h2>
-      </div>
-      <div class="l-section l-section--col">
-        <div class="l-books__grid">
-          {% for book in results.art %}
-            {% include 'catalogue/book_box.html' %}
-          {% endfor %}
-        </div>
-      </div>
-    {% endif %}
-
     {% if results.snippet %}
       <div class="l-container">
         <h2 class="header">{% trans "W treÅ›ci" %}</h2>
               {{ book.title }}
             </a>
             {% for f in snippets %}
-              <a class="c-search-result-fragment-text" href='{% url 'book_text' f.book.slug %}#sec{{ f.sec }}'>
+              <a class="c-search-result-fragment-text" href='{% url 'book_text' f.book.slug %}#{{ f.anchor }}'>
                 {{ f.headline|safe }}
               </a>
             {% endfor %}