From 5a5d84c6f3c9007e0bda83aa5df5369c838014aa Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 23 May 2013 09:43:52 -0400 Subject: [PATCH] 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 Signed-off-by: Pasi Kallinen Signed-off-by: Dan Wells --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 dea01459d5..8d81cf5389 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 { -- 2.43.2