https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15745

--- Comment #3 from M. Tompsett <[email protected]> ---
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.
_______________________________________________
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/

Reply via email to