[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 4f409cf9870f833c3328bfb9d071d09198fb69a2

Evergreen Git git at git.evergreen-ils.org
Wed May 29 15:46:53 EDT 2013


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_4 has been updated
       via  4f409cf9870f833c3328bfb9d071d09198fb69a2 (commit)
      from  1c22152a9a7f76732f898ef0513114de0b526f2f (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 4f409cf9870f833c3328bfb9d071d09198fb69a2
Author: Bill Erickson <berick at esilibrary.com>
Date:   Thu May 23 09:43:52 2013 -0400

    LP1183357 Pass locale to bib search (tpac)
    
    Pass the TPAC locale value, which is collected at each page load, to the
    bib search API call.  This allows us to take advantage of language-based
    relevance bumps.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Pasi Kallinen <pasi.kallinen at pttk.fi>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
index dea0145..8d81cf5 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -417,8 +417,12 @@ sub load_rresults {
             my $method = 'open-ils.search.biblio.multiclass.query';
             $method .= '.staff' if $ctx->{is_staff};
 
+            my $ses = OpenSRF::AppSession->create('open-ils.search');
+            $ses->session_locale($OpenILS::Utils::CStoreEditor::default_locale); # set in EGWeb
+
             $self->timelog("Firing off the multiclass query");
-            $results = $U->simplereq('open-ils.search', $method, $args, $query, 1);
+            my $req = $ses->request($method, $args, $query, 1);
+            $results = $req->gather(1);
             $self->timelog("Returned from the multiclass query");
 
         } catch Error with {

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

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list