-# $Id: Bib1.pm,v 1.10 2006-10-13 10:34:34 sondberg Exp $
+# $Id: Bib1.pm,v 1.12 2006-10-25 10:49:51 mike Exp $
# See the "Main" test package for documentation
foreach my $attr (@attrs) {
$conn->irspy_search_pqf("\@attr 1=$attr mineral",
- {'attr' => $attr},
+ {'attr' => $attr}, {},
ZOOM::Event::RECV_SEARCH, \&found,
exception => \&error);
}
$conn->log("irspy_test", "search on access-point $attr found $n record",
$n==1 ? "" : "s");
- $conn->record()->append_entry("irspy:status",
- "<irspy:search set='bib1' ap='$attr' ok='1'>".
- isodate(time()) .
- "</irspy:search>");
+ $conn->record()->store_result('search', 'set' => 'bib1',
+ 'ap' => $attr,
+ 'ok' => 1);
return ZOOM::IRSpy::Status::TASK_DONE;
}
$conn->log("irspy_test", "search on access-point $attr had error: ",
$exception);
- $conn->record()->append_entry("irspy:status",
- "<irspy:search set='bib1' ap='$attr' ok='0'>".
- isodate(time()) .
- "</irspy:search>");
+ $conn->record()->store_result('search', 'set' => 'bib1',
+ 'ap' => $attr,
+ 'ok' => 0);
return ZOOM::IRSpy::Status::TASK_DONE;
}