1 package Koha::QueryParser::Driver::PQF::query_plan::modifier;
2 use base 'OpenILS::QueryParser::query_plan::modifier';
7 =head2 Koha::QueryParser::Driver::PQF::query_plan::modifier::target_syntax
9 my $pqf = $modifier->target_syntax($server, $query_plan);
11 Transforms an OpenILS::QueryParser::query_plan::modifier object into PQF. Do not use
12 directly. The second argument points ot the query_plan, since modifiers do
13 not have a reference to their parent query_plan.
18 my ($self, $server, $query_plan) = @_;
22 my $attributes = $query_plan->QueryParser->bib1_mapping_by_name('modifier', $self->name, $server);
23 $pqf = ($attributes->{'op'} ? $attributes->{'op'} . ' ' : '') . ($self->negate ? '@not @attr 1=_ALLRECORDS @attr 2=103 "" ' : '') . $attributes->{'attr_string'};