This makes filter_group_entry(1,2,3) build an OR'd set of the resulting
queries instead of just tacking them onto each other as ANDs.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
sub subquery_callback {
my ($invocant, $self, $struct, $filter, $params, $negate) = @_;
- return join(
- ' ',
- map {
- $_->query_text
- } @{
- OpenILS::Utils::CStoreEditor
- ->new
- ->search_actor_search_query({ id => $params })
- }
+ return sprintf(' ((%s)) ',
+ join(
+ ') || (',
+ map {
+ $_->query_text
+ } @{
+ OpenILS::Utils::CStoreEditor
+ ->new
+ ->search_actor_search_query({ id => $params })
+ }
+ )
);
}