http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7445
--- Comment #2 from Magnus Enger <[email protected]> 2012-01-17 17:40:40 UTC --- The problem seems to stem from Lingua::Stem::Snowball and specifically the call to it on line 741 of C4/Search.pm - in the _build_stemmed_operand function: my $stemmer = Lingua::Stem::Snowball->new( lang => $lang, encoding => "UTF-8" ); For Norwegian, $lang holds "nb-NO". Replacing that temporarily with a literal value of "no" solves the problem. The documentation (e.g. http://search.cpan.org/dist/Lingua-Stem-Snowball/lib/Lingua/Stem/Snowball.pm) for Lingua::Stem::Snowball->new says this about the lang parameter: "lang: An ISO code taken from the table of supported languages, above." The table referenced only lists two-letter language codes, specifically these: da, nl, en, fi, fr, de, hu, it, no, pt, ro, ru, es, sv, tr. The syspref QueryStemming influences the observed behviour. When the chosen language in the OPAC is Norwegian (nb-NO), this works regardless of what QueryStemming is set to: http://head.bibkat.no/cgi-bin/koha/opac-search.pl?q=code Clicking on a tag in the result list gives this URL: http://head.bibkat.no/cgi-bin/koha/opac-search.pl?tag=code&q=code When QueryStemming = "Try" this fails with the "Language ... does not exist" message. When QueryStemming = "Don't try" a result list is shown, as expected. Still confused... -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
