our @ISA = qw(ZOOM::IRSpy::Test);
my @queries = (
- "\@attr 1=4 mineralazsdfdsf",
+ "\@attr 1=4 mineral",
"\@attr 1=4 computer",
"\@attr 1=44 mineral", # Smithsonian doesn't support AP 4!
"\@attr 1=1016 water", # Connector Framework only does 1016
my $class = shift();
my($conn) = @_;
+ #$conn->option(apdulog => 1);
$conn->option(preferredRecordSyntax => "opac");
$conn->irspy_search_pqf($queries[0], { queryindex => 0 }, \%options,
ZOOM::Event::ZEND, \&completed_search,
if !defined $q || $conn->record->zoom_error->{TIMEOUT} >= $ZOOM::IRSpy::max_timeout_errors;
$conn->log("irspy_test", "Trying another search ...");
- $conn->irspy_search_pqf($queries[$qindex], { queryindex => $qindex }, %options,
+ $conn->irspy_search_pqf($queries[$qindex], { queryindex => $qindex }, \%options,
ZOOM::Event::ZEND, \&completed_search,
exception => \&completed_search);
return ZOOM::IRSpy::Status::TASK_DONE;
# that those records be included in the Search Response using
# piggybacking. Was it done?
my $rec = $task->{rs}->record_immediate(2);
- my $ok = defined $rec;
+ my $ok = defined $rec && $rec->error() == 0;
$task->{rs}->destroy();
$conn->record()->store_result('multiple_opac', 'ok' => $ok);