[open-ils-commits] r17757 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Search (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Sep 17 09:32:33 EDT 2010


Author: miker
Date: 2010-09-17 09:32:31 -0400 (Fri, 17 Sep 2010)
New Revision: 17757

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
OU locale lookup needs a bit more work, it needs to pass a language instead of an xx-YY locale string

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2010-09-17 05:08:15 UTC (rev 17756)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2010-09-17 13:32:31 UTC (rev 17757)
@@ -789,8 +789,10 @@
         if $sclient->config_value(apps => 'open-ils.search',
             app_settings => 'use_staged_search') =~ /true/i;
 
-    $arghash->{preferred_language} = $U->get_org_locale($arghash->{org_unit})
-        unless $arghash->{preferred_language};
+    # XXX This stops the session locale from doing the right thing.
+    # XXX Revisit this and have it translate to a lang instead of a locale.
+    #$arghash->{preferred_language} = $U->get_org_locale($arghash->{org_unit})
+    #    unless $arghash->{preferred_language};
 
 	$method = $self->method_lookup($method);
     my ($data) = $method->run($arghash, $docache);



More information about the open-ils-commits mailing list