From 0729df1434300cc6dbf9a05b0009d33411e6913c Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Wed, 25 Jul 2012 13:43:38 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/results.tt2 | 3 +++ 1 file changed, 3 insertions(+) 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 %]
-- 2.11.0