1 # $Id: Bib1.pm,v 1.14 2006-10-27 09:56:07 sondberg Exp $
3 # See the "Main" test package for documentation
5 package ZOOM::IRSpy::Test::Search::Bib1;
11 use ZOOM::IRSpy::Test;
12 our @ISA = qw(ZOOM::IRSpy::Test);
18 my @attrs = ( 1..63, 1000..1036, # Bib-1
19 1037..1096, 1185..1209, # Extended Bib-1
20 1097..1111, # Dublin-Core
24 foreach my $attr (@attrs) {
25 $conn->irspy_search_pqf("\@attr 1=$attr mineral",
26 {'attr' => $attr}, {},
27 ZOOM::Event::RECV_SEARCH, \&found,
28 exception => \&error);
34 my($conn, $task, $test_args, $event) = @_;
35 my $attr = $test_args->{'attr'};
36 my $n = $task->{rs}->size();
38 $conn->log("irspy_test", "search on access-point $attr found $n record",
40 update($conn, $attr, 1);
42 return ZOOM::IRSpy::Status::TASK_DONE;
47 my($conn, $task, $test_args, $exception) = @_;
48 my $attr = $test_args->{'attr'};
50 $conn->log("irspy_test", "search on access-point $attr had error: ",
52 update($conn, $attr, 0);
54 return ZOOM::IRSpy::Status::TASK_DONE;
59 my ($conn, $attr, $ok) = @_;
60 $conn->record()->store_result('search', 'set' => 'bib-1',