1 # $Id: Bib1.pm,v 1.7 2006-10-12 14:40:24 mike 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);
19 my @attrs = (1, # personal name
25 foreach my $attr (@attrs) {
26 $conn->irspy_search_pqf("\@attr 1=$attr mineral", $attr,
27 ZOOM::Event::RECV_SEARCH, \&found,
28 exception => \&error);
34 my($conn, $task, $attr, $event) = @_;
36 my $n = $task->{rs}->size();
37 $conn->log("irspy_test", "search on access-point $attr found $n record",
39 ### Need to get the BIB-1 attribute into this callback
40 $conn->record()->append_entry("irspy:status",
41 "<irspy:search_bib1 ap='$attr' ok='1'>" .
43 "</irspy:search_bib1>");
45 return ZOOM::IRSpy::Status::TASK_DONE;
50 my($conn, $task, $attr, $exception) = @_;
52 $conn->log("irspy_test", "search on access-point $attr had error: ",
54 $conn->record()->append_entry("irspy:status",
55 "<irspy:search_bib1 ap='$attr' ok='0'>" .
57 "</irspy:search_bib1>");
58 return ZOOM::IRSpy::Status::TASK_DONE;