[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 4070d823f4f073fc3ae54891fa005a69d1a54a5f

Evergreen Git git at git.evergreen-ils.org
Mon Aug 13 10:56:25 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_2 has been updated
       via  4070d823f4f073fc3ae54891fa005a69d1a54a5f (commit)
      from  eff0427eb257bf01d258391aa9fd3a396cfa285d (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 4070d823f4f073fc3ae54891fa005a69d1a54a5f
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