Add a hidden field in the search form and set its value to the value
of the CGI 'facet' param if the facet parameter is set. This appears
to work for multiple facets. Clearing a facet is as simple as clicking
on the gray-backgounded facet name.
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
page_count = ctx.page_size == 0 ? 1 : POSIX.ceil(ctx.hit_count / ctx.page_size);
%]
<form action="[% ctx.opac_root %]/results" method="GET">
+ [% IF CGI.param('facet') %]
+ <input type="hidden" name="facet" value="[% CGI.param('facet') %]" />
+ [% END %]
<div id="search-wrapper">
[% INCLUDE "opac/parts/searchbar.tt2" took_care_of_form=1 %]
</div>