[open-ils-commits] [GIT] Evergreen ILS branch master updated. 6c275daf6f4d669eec14fe1226902ab12066ce95

Evergreen Git git at git.evergreen-ils.org
Mon Aug 13 10:55:49 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, master has been updated
       via  6c275daf6f4d669eec14fe1226902ab12066ce95 (commit)
      from  93c31e73cfb91c126de3a9f5fca1a30df514e8ed (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 6c275daf6f4d669eec14fe1226902ab12066ce95
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