Remove manual TPAC locale applications
authorBill Erickson <berick@esilibrary.com>
Thu, 6 Jun 2013 14:02:27 +0000 (10:02 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 6 Nov 2013 18:13:33 +0000 (13:13 -0500)
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>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

index 976940f..e372267 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 e520ff5..1a8740c 100644 (file)
@@ -419,7 +419,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);