From: Jared Camins-Esakov Date: Sat, 8 Sep 2012 03:36:36 +0000 (-0400) Subject: Allow nested modifiers X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b2e845b6ff631d8475b3d37633686ae369c2160f;p=working%2FEvergreen.git Allow nested modifiers Signed-off-by: Jared Camins-Esakov --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm index 0b756de22c..6f948efbb0 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm @@ -650,7 +650,7 @@ sub decompose { warn "Encountered search modifier: $1\n" if $self->debug; $_ = $'; - if (!$struct->top_plan) { + if (!($struct->top_plan || $parser_config{QueryParser}->{allow_nested_modifiers})) { warn " Search modifiers only allowed at the top level of the query\n" if $self->debug; } else { $struct->new_modifier($1); @@ -663,7 +663,7 @@ sub decompose { my $mod = $1; $_ = $'; - if (!$struct->top_plan) { + if (!($struct->top_plan || $parser_config{QueryParser}->{allow_nested_modifiers})) { warn " Search modifiers only allowed at the top level of the query\n" if $self->debug; } elsif ($2 =~ /^[ty1]/i) { $struct->new_modifier($mod);