[Koha-bugs] [Bug 15745] C4::Matcher gets CCL parsing error if term contains ? (question mark)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Feb 12 21:29:10 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15745
--- Comment #3 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 47676
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47676
Bug 15745 - C4::Matcher gets CCL parsing error if term contains ? (question
mark)
Review of attachment 47676:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15745&attachment=47676)
-----------------------------------------------------------------
::: C4/Matcher.pm
@@ +658,5 @@
> else {
> my $phr = C4::Context->preference('AggressiveMatchOnISBN') ? ',phr' : q{};
> $query = join( " or ",
> + map { "$matchpoint->{'index'}$phr=\"$_\"" } @source_keys );
> + #NOTE: double-quote the values so you don't get a "Embedded truncation not supported" error when a term has a ? in it.
What about the test case where you want to search for double quotes? Escaping
is needed. Perhaps there is another way?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list