[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5a5d84c6f3c9007e0bda83aa5df5369c838014aa

Evergreen Git git at git.evergreen-ils.org
Wed May 29 15:46:01 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, master has been updated
       via  5a5d84c6f3c9007e0bda83aa5df5369c838014aa (commit)
      from  a6c2c194f5acd29af9772323e02bc17413555472 (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 5a5d84c6f3c9007e0bda83aa5df5369c838014aa
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