Fix section counting/targetting from search snippet
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Mon, 30 Jan 2012 12:21:06 +0000 (13:21 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Mon, 30 Jan 2012 12:21:30 +0000 (13:21 +0100)
lib/librarian
wolnelektury/templates/catalogue/book_searched.html

index 5f2702e..1788a34 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 5f2702eda7a1b36f4d29658b5468b6b78745218c
+Subproject commit 1788a3460def290cf9dd0eff514e77c5d427bcc5
index 8dfa053..1a345ed 100644 (file)
@@ -8,7 +8,7 @@
 <div class="snippets">
   {% for hit in hits %}
   {% if hit.snippets %}
-  <div class="snippet-text"><a href="{% url book_text book.slug %}#sect{{hit.section_number}}">{{hit.snippets.0|safe}}</a></div>
+  <div class="snippet-text"><a href="{% url book_text book.slug %}#sec{{hit.section_number}}">{{hit.snippets.0|safe}}</a></div>
   {% else %}
   {% if hit.fragment %}
   <div class="snippet-text">