bug 2827: better language check
This patch use a regexp instead 'eq' to find if french is an opaclanguage. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
a43c8408e4
commit
72c35aa328
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue