TPAC: Clear params when viewing lists in search results
authorDan Scott <dan@coffeecode.net>
Wed, 11 Apr 2012 04:08:41 +0000 (00:08 -0400)
committerDan Scott <dan@coffeecode.net>
Fri, 13 Apr 2012 04:23:14 +0000 (00:23 -0400)
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>
Open-ILS/src/templates/opac/myopac/lists.tt2

index ffab0b3..c9ee720 100644 (file)
             <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>