-# $Id: Fetch.pm,v 1.11 2006-10-31 12:42:32 mike Exp $
+# $Id: Fetch.pm,v 1.14 2006-11-03 13:37:33 mike Exp $
# See the "Main" test package for documentation
sub completed_search {
my($conn, $task, $udata, $event) = @_;
- $conn->log("irspy_test", "Fetch test search succeeded");
+ my $n = $task->{rs}->size();
+ $conn->log("irspy_test", "Fetch test search found $n records");
+ return ZOOM::IRSpy::Status::TEST_SKIPPED if $n == 0;
+
my @syntax = (
'canmarc',
'danmarc',
$conn->record()->store_result('record_fetch',
'syntax' => $syn,
- 'ok' => defined $text);
+ 'ok' => defined $text ? 1 : 0);
return ZOOM::IRSpy::Status::TASK_DONE;
}