@@ -, +, @@ --- Koha/QueryParser/Driver/PQF/query_plan/node.pm | 1 - .../QueryParser/Driver/PQF/query_plan/node/atom.pm | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) --- a/Koha/QueryParser/Driver/PQF/query_plan/node.pm +++ a/Koha/QueryParser/Driver/PQF/query_plan/node.pm @@ -67,7 +67,6 @@ sub target_syntax { if (ref($atom)) { $atom_content = $atom->target_syntax($server); if ($atom_content) { - $atom_content =~ s/"/\\"/g; $pqf .= ' @or ' x (scalar(@fields) - 1); foreach my $attributes (@fields) { $attributes->{'attr_string'} ||= ''; --- a/Koha/QueryParser/Driver/PQF/query_plan/node/atom.pm +++ a/Koha/QueryParser/Driver/PQF/query_plan/node/atom.pm @@ -22,7 +22,10 @@ directly. sub target_syntax { my ($self, $server) = @_; - return ' "' . $self->content . '" '; + my $content = $self->content; + $content =~ s/"/\\"/g; + + return ' "' . $content . '" '; } 1; --