This patch use a regexp instead 'eq' to find if french is an opaclanguage.
---
 misc/cronjobs/build_browser_and_cloud.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/cronjobs/build_browser_and_cloud.pl 
b/misc/cronjobs/build_browser_and_cloud.pl
index f4546e9..263d886 100755
--- a/misc/cronjobs/build_browser_and_cloud.pl
+++ b/misc/cronjobs/build_browser_and_cloud.pl
@@ -124,7 +124,7 @@ if ($browser_tag) {
     print "inserting datas in browser table\n";
     # read existing classification table is possible
     my $classification;
-    if (C4::Context->preference('opaclanguages') eq 'fr' && $browser_tag eq 
'676' & $browser_subfield eq 'a') {
+    if (C4::Context->preference('opaclanguages') =~ m/^fr/i && $browser_tag eq 
'676' & $browser_subfield eq 'a') {
         $classification = dewey_french();
     }
 
-- 
1.5.6.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to