1 # $Id: Bib1.pm,v 1.9 2006-10-13 10:03:31 sondberg Exp $
3 # See the "Main" test package for documentation
5 package ZOOM::IRSpy::Test::Search::Bib1;
12 use ZOOM::IRSpy::Test;
13 our @ISA = qw(ZOOM::IRSpy::Test);
20 my @attrs = (1, # personal name
26 foreach my $attr (@attrs) {
27 $conn->irspy_search_pqf("\@attr 1=$attr mineral",
29 ZOOM::Event::RECV_SEARCH, \&found,
30 exception => \&error);
36 my($conn, $task, $test_args, $event) = @_;
37 my $attr = $test_args->{'attr'};
38 my $n = $task->{rs}->size();
40 $conn->log("irspy_test", "search on access-point $attr found $n record",
42 $conn->record()->append_entry("irspy:status",
43 "<irspy:search set='bib1' ap='$attr' ok='1'>".
47 return ZOOM::IRSpy::Status::TASK_DONE;
52 my($conn, $task, $test_args, $exception) = @_;
53 my $attr = $test_args->{'attr'};
55 $conn->log("irspy_test", "search on access-point $attr had error: ",
57 $conn->record()->append_entry("irspy:status",
58 "<irspy:search set='bib1' ap='$attr' ok='0'>".
61 return ZOOM::IRSpy::Status::TASK_DONE;