1. avoid showing the search terms from canned searches in the simple
search box. Patrons, kids especially, probably don't want to see
potentially complicated canned search queries in the search box when the
whole point is that they are accessible by clicking on images.
2. Avoid propagating the search qtype param to canned searches.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
[% ELSIF cell.type == 'search'; %]
- <td width="[% width %]%"><a href="[% mkurl(ctx.kpac_root _ '/results', {query => cell.content}, ['page']) %]"><img
+ <td width="[% width %]%"><a href="[%
+ mkurl(ctx.kpac_root _ '/results', {query => cell.content, nosprop => 1}, ['page', 'qtype']) %]"><img
src="[% kpac_img_path(cell.img) %]" alt="" /><span>[% cell.name %]</span></a></td>
[% ELSIF cell.type == 'link'; %]
<div class="sub_sidebar_header">[% l('New Search') %]</div>
<form action="[% ctx.kpac_root _ '/results' %]">
<div class="sub_sidebar_search_wrapper">
- <input type="text" name='query' value="[% CGI.param('query') | html %]"
+ <input type="text" name='query'
+ value="[% CGI.param('nosprop') ? '' : CGI.param('query') | html %]"
[% seed = l(' Enter Text... ') | html %]
class="sub_sidebar_search_box" style="color:#aaa;" value="[% seed %]"
onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}"