1 # $Id: Bib1.pm,v 1.2 2006-09-26 13:34:38 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 = @ISA = qw(ZOOM::IRSpy::Test);
14 our @Bib1_Attr = qw(1 2 3 4 5 6 7 8 9);
19 my $irspy = $this->irspy();
20 my $pod = $irspy->pod();
22 $pod->callback(ZOOM::Event::RECV_SEARCH, \&found);
24 foreach my $attr (@Bib1_Attr) {
25 $pod->search_pqf('@attr 1=' . $attr . ' water' );
26 $irspy->{'handle'}->{'attr'} = $attr;
27 my $err = $pod->wait($irspy);
35 my($conn, $irspy, $rs, $event) = @_;
36 my $attr = $irspy->{'handle'}->{'attr'};
38 my $rec = $irspy->record($conn);
40 $irspy->log("irspy_test", $conn->option("host"),
41 " Bib-1 attribute=$attr search found $n record",
44 $rec->append_entry("irspy:status", "<irspy:search set='bib1' attr='$attr'" .
45 " ok='1'>" . $irspy->isodate(time()) .