ignore the native catalog search when processing async z39 results
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Search / Z3950.pm
index 961f674..fc2f672 100755 (executable)
@@ -194,6 +194,9 @@ sub do_class_search {
     return undef unless (@connections);
        my @records;
 
+    # local catalog search is not processed with other z39 results;
+    $$args{service} = [grep {$_ ne 'native-evergreen-catalog'} @{$$args{service}}];
+
        while ((my $index = OpenILS::Utils::ZClient::event( \@connections )) != 0) {
                my $ev = $connections[$index - 1]->last_event();
                $logger->debug("z3950: Received event $ev");