TPac; start new facet "search" on page 0
authorBill Erickson <berick@esilibrary.com>
Thu, 6 Oct 2011 20:34:40 +0000 (16:34 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 6 Oct 2011 20:34:40 +0000 (16:34 -0400)
When selecting a facet, thereby appending it to the current search,
start the search over at the first page.  In other words, don't drop
into page X of a new search, since there may be no page X of the new
search.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/opac/parts/result/facets.tt2

index c5eb9f6..76c335f 100644 (file)
@@ -80,7 +80,7 @@ FOR facet_label IN labels.sort;
                     %]
                         <div class="facet_template">
                             <div class="facet">
-                                <a href='[% mkurl('', {facet => selected_facets.merge([param_string])}) %]'>[% display_value %]</a>
+                                <a href='[% mkurl('', {facet => selected_facets.merge([param_string])}, ['page']) %]'>[% display_value %]</a>
                             </div>
                             <div class="count">([% facet_data.count %])</div>
                             <div class="clear">&nbsp;</div>