TPac; propagate query params to adv search (results link) user/berick/tpac-advanced-link-query-prop-2
authorBill Erickson <berick@esilibrary.com>
Fri, 11 Nov 2011 18:22:34 +0000 (13:22 -0500)
committerBill Erickson <berick@esilibrary.com>
Fri, 11 Nov 2011 18:22:34 +0000 (13:22 -0500)
Update the "Advanced Search" link that shows on search results pages
(next to "Another Search") to propagate the current query into the
advanced search page, just like the Advanced Search link just above the
search bar.

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

index a34f300..17fddab 100644 (file)
@@ -27,7 +27,7 @@
                     <a href="[% ctx.opac_root %]/home">[% l('Another Search') %]</a>
                 </div>
                 <div class="results_header_btns">
-                    <a href="[% ctx.opac_root %]/advanced">[% l('Advanced Search') %]</a>
+                    <a href="[% mkurl(ctx.opac_root _ '/advanced') %]">[% l('Advanced Search') %]</a>
                 </div>
                 [% IF ctx.mylist.size %]
                 <div class="results_header_btns cached_list_div">