Remove manual TPAC locale applications user/berick/tpac-per-request-locale
authorBill Erickson <berick@esilibrary.com>
Thu, 6 Jun 2013 14:02:27 +0000 (10:02 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 6 Jun 2013 14:02:27 +0000 (10:02 -0400)
OpenILS::Utils::CStoreEditor::default_locale is no longer set, since the
opensrf client locale is now global.  Remove all references to this
variable.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

index b60031a..8e08dab 100644 (file)
@@ -61,7 +61,6 @@ sub load_record {
     # run copy retrieval in parallel to bib retrieval
     # XXX unapi
     my $cstore = OpenSRF::AppSession->create('open-ils.cstore');
-    $cstore->session_locale($OpenILS::Utils::CStoreEditor::default_locale);
     my $copy_rec = $cstore->request(
         'open-ils.cstore.json_query.atomic', 
         $self->mk_copy_query($rec_id, $org, $copy_depth, $copy_limit, $copy_offset, $pref_ou)
index 8d81cf5..9ab8580 100644 (file)
@@ -418,7 +418,6 @@ sub load_rresults {
             $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");
             my $req = $ses->request($method, $args, $query, 1);