[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 767fcaa324a97288663cf29809264e1d1b42423a

Evergreen Git git at git.evergreen-ils.org
Mon Aug 13 10:56:12 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_3 has been updated
       via  767fcaa324a97288663cf29809264e1d1b42423a (commit)
      from  7eb9ee92f1c3c40b3fa3064831bb979763a1080e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 767fcaa324a97288663cf29809264e1d1b42423a
Author: Jason Stephenson <jstephenson at mvlc.org>
Date:   Wed Jul 25 13:43:38 2012 -0400

    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 <jstephenson at mvlc.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/templates/opac/results.tt2 b/Open-ILS/src/templates/opac/results.tt2
index 875a8d2..976c5e9 100644
--- a/Open-ILS/src/templates/opac/results.tt2
+++ b/Open-ILS/src/templates/opac/results.tt2
@@ -15,6 +15,9 @@
     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>

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/results.tt2 |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list