1 # $Id: Bib1.pm,v 1.10 2006-10-13 10:34:34 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",
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 $conn->record()->append_entry("irspy:status",
41 "<irspy:search set='bib1' ap='$attr' ok='1'>".
45 return ZOOM::IRSpy::Status::TASK_DONE;
50 my($conn, $task, $test_args, $exception) = @_;
51 my $attr = $test_args->{'attr'};
53 $conn->log("irspy_test", "search on access-point $attr had error: ",
55 $conn->record()->append_entry("irspy:status",
56 "<irspy:search set='bib1' ap='$attr' ok='0'>".
59 return ZOOM::IRSpy::Status::TASK_DONE;