-# $Id: Ping.pm,v 1.19 2007-01-20 09:53:40 mike Exp $
+# $Id: Ping.pm,v 1.20 2007-02-23 15:03:44 mike Exp $
# See the "Main" test package for documentation
my($conn) = @_;
$conn->irspy_connect(undef, {},
- ZOOM::Event::RECV_APDU, \&connected,
+ ZOOM::Event::ZEND, \&connected,
exception => \¬_connected);
}
-# $Id: Fetch.pm,v 1.24 2007-02-22 17:45:43 mike Exp $
+# $Id: Fetch.pm,v 1.25 2007-02-23 15:03:44 mike Exp $
# See the "Main" test package for documentation
# managed to search for in the Search/Bib1 or Search/Dan1 tests.
# But how? So far we search for title: 1=4
$conn->irspy_search_pqf($queries[0], { queryindex => 0 }, {},
- ZOOM::Event::RECV_SEARCH, \&completed_search,
+ ZOOM::Event::ZEND, \&completed_search,
exception => \&completed_search);
}
$conn->log("irspy_test", "Trying another search ...");
$conn->irspy_search_pqf($queries[$qindex], { queryindex => $qindex }, {},
- ZOOM::Event::RECV_SEARCH, \&completed_search,
+ ZOOM::Event::ZEND, \&completed_search,
exception => \&completed_search);
return ZOOM::IRSpy::Status::TASK_DONE;
}
last => ($i == $#syntax) },
{ start => 0, count => 1,
preferredRecordSyntax => $syntax },
- ZOOM::Event::RECV_RECORD, \&record,
+ ZOOM::Event::ZEND, \&record,
exception => \&fetch_error);
}
-# $Id: Named.pm,v 1.1 2006-11-02 11:46:40 sondberg Exp $
+# $Id: Named.pm,v 1.2 2007-02-23 15:03:44 mike Exp $
# See the "Main" test package for documentation
$conn->irspy_search_pqf("\@attr 1=4 mineral", {},
{'setname' => 'a', 'start' => 0, 'count' => 0},
- ZOOM::Event::RECV_SEARCH, \&completed_search_a,
+ ZOOM::Event::ZEND, \&completed_search_a,
exception => \&error);
}
{'record_a' => $record, 'hits_a' => $hits,
'rs_a' => $rs},
{'setname' => 'b'},
- ZOOM::Event::RECV_SEARCH, \&completed_search_b,
+ ZOOM::Event::ZEND, \&completed_search_b,
exception => \&error);
return ZOOM::IRSpy::Status::TASK_DONE;
-# $Id: Bib1.pm,v 1.14 2006-10-27 09:56:07 sondberg Exp $
+# $Id: Bib1.pm,v 1.15 2007-02-23 15:03:44 mike Exp $
# See the "Main" test package for documentation
foreach my $attr (@attrs) {
$conn->irspy_search_pqf("\@attr 1=$attr mineral",
{'attr' => $attr}, {},
- ZOOM::Event::RECV_SEARCH, \&found,
+ ZOOM::Event::ZEND, \&found,
exception => \&error);
}
}
-# $Id: Boolean.pm,v 1.3 2006-10-26 10:24:20 sondberg Exp $
+# $Id: Boolean.pm,v 1.4 2007-02-23 15:03:44 mike Exp $
# See the "Main" test package for documentation
foreach my $operator (keys %pqfs) {
$conn->irspy_search_pqf($pqfs{$operator},
{'operator' => $operator}, {},
- ZOOM::Event::RECV_SEARCH, \&found,
+ ZOOM::Event::ZEND, \&found,
exception => \&error);
}
}
-# $Id: DBDate.pm,v 1.3 2006-11-29 18:18:38 mike Exp $
+# $Id: DBDate.pm,v 1.4 2007-02-23 15:03:44 mike Exp $
# This plugin tests searching on BIB-1 access-point 1011 (Date/time
# added to db), the significance of which is that this search
my($conn) = @_;
$conn->irspy_search_pqf('@attr 1=1011 mineral', undef, {},
- ZOOM::Event::RECV_SEARCH, \&found,
+ ZOOM::Event::ZEND, \&found,
"exception", \&error);
}
-# $Id: Dan1.pm,v 1.5 2006-10-27 09:56:07 sondberg Exp $
+# $Id: Dan1.pm,v 1.6 2007-02-23 15:03:44 mike Exp $
# See the "Main" test package for documentation
foreach my $attr (@attrs) {
$conn->irspy_search_pqf("\@attr dan1 1=$attr mineral",
{'attr' => $attr}, {},
- ZOOM::Event::RECV_SEARCH, \&found,
+ ZOOM::Event::ZEND, \&found,
exception => \&error);
}
}
$exception);
update($conn, $attr, 0);
+ ### How about TEST_BAD if $exception->code() == 121?
return ZOOM::IRSpy::Status::TASK_DONE;
}
-# $Id: Explain.pm,v 1.3 2006-10-26 12:55:35 mike Exp $
+# $Id: Explain.pm,v 1.4 2007-02-23 15:03:44 mike Exp $
# See the "Main" test package for documentation
$conn->irspy_search_pqf('@attr exp-1 1=1 ' . $category,
{'category' => $category},
{ databaseName => 'IR-Explain-1' },
- ZOOM::Event::RECV_SEARCH, \&found,
+ ZOOM::Event::ZEND, \&found,
exception => \&error);
}
}
-# $Id: Title.pm,v 1.9 2006-11-29 18:18:38 mike Exp $
+# $Id: Title.pm,v 1.10 2007-02-23 15:03:44 mike Exp $
# See the "Main" test package for documentation
my($conn) = @_;
$conn->irspy_search_pqf('@attr 1=4 mineral', undef, {},
- ZOOM::Event::RECV_SEARCH, \&found,
+ ZOOM::Event::ZEND, \&found,
"exception", \&error);
}