TPAC: Clear params when viewing lists in search results collab/dyrcona/lp977353_clear_params_list_view
authorDan Scott <dan@coffeecode.net>
Wed, 11 Apr 2012 04:08:41 +0000 (00:08 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 11 Apr 2012 19:05:34 +0000 (15:05 -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>