From: Jason Stephenson Date: Wed, 25 Jul 2012 17:43:38 +0000 (-0400) Subject: Make opac/results.tt2 remember facet when sorting, etc. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0729df1434300cc6dbf9a05b0009d33411e6913c;p=contrib%2FConifer.git Make opac/results.tt2 remember facet when sorting, etc. 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 Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates/opac/results.tt2 b/Open-ILS/src/templates/opac/results.tt2 index 7b2917ec14..e5612cc71b 100644 --- a/Open-ILS/src/templates/opac/results.tt2 +++ b/Open-ILS/src/templates/opac/results.tt2 @@ -18,6 +18,9 @@ PROCESS get_library; %]
+ [% IF CGI.param('facet') %] + + [% END %]
[% INCLUDE "opac/parts/searchbar.tt2" took_care_of_form=1 %]