1 # $Id: Bib1.pm,v 1.6 2006-10-11 16:47:23 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",
27 ZOOM::Event::RECV_SEARCH, \&found,
28 exception => \&error);
34 my($conn, $task, $event) = @_;
36 my $n = $task->{rs}->size();
37 $conn->log("irspy_test", "search found $n record", $n==1 ? "" : "s");
38 ### Need to get the BIB-1 attribute into this callback
39 $conn->record()->append_entry("irspy:status",
40 "<irspy:search_bib1 ok='1'>" .
42 "</irspy:search_bib1>");
44 return ZOOM::IRSpy::Status::TASK_DONE;
49 my($conn, $task, $exception) = @_;
51 $conn->log("irspy_test", "error: $exception");
52 $conn->record()->append_entry("irspy:status",
53 "<irspy:search_bib1 ok='0'>" .
55 "</irspy:search_bib1>");
56 return ZOOM::IRSpy::Status::TASK_DONE;