From: Dan Scott <dan@coffeecode.net>
Date: Wed, 11 Apr 2012 04:08:41 +0000 (-0400)
Subject: TPAC: Clear params when viewing lists in search results
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d22291dd0f717f629fd22afce5bdc98269e634dd;p=evergreen%2Fmasslnc.git

TPAC: Clear params when viewing lists in search results

Per LP977353, search terms are propagating when the list is being viewed
in "results" (HTML View), and therefore those search terms block the
display of most or all of the items in the list. Therefore, do not
propagate the other CGI params to the mkurl() call.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
---

diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2
index ffab0b3952..c9ee72014c 100644
--- a/Open-ILS/src/templates/opac/myopac/lists.tt2
+++ b/Open-ILS/src/templates/opac/myopac/lists.tt2
@@ -106,7 +106,11 @@
             <div class="bookbag-controls">
                 [% IF bbag.pub == 't'; %]
                 <a href='[%-
-                    mkurl( ctx.opac_root _ '/results', {page => '0', bookbag => bbag.id} )
+                    mkurl(
+                        ctx.opac_root _ '/results',
+                        {page => '0', bookbag => bbag.id, depth => 0, locg => ctx.search_ou},
+                        1
+                    )
                 -%]'>[% l('HTML View') %]</a>
                 [% END %]
             </div>