-# $Id: zoomtst1.pl,v 1.1 2005-10-12 11:53:11 mike Exp $
+# $Id: zoomtst1.pl,v 1.2 2005-10-12 14:35:58 mike Exp $
#
# See ../README for a description of this program.
# perl -I../../blib/lib -I../../blib/arch zoomtst1.pl <target> <query>
if $errcode != 0;
my $n = Net::Z3950::ZOOM::resultset_size($rs);
+print "Query '$query' found $n records\n";
+
for my $i (0..$n-1) {
my $rec = Net::Z3950::ZOOM::resultset_record($rs, $i);
print "=== Record ", $i+1, " of $n ===\n";
-# $Id: zoomtst1.pl,v 1.1 2005-10-12 11:53:00 mike Exp $
+# $Id: zoomtst1.pl,v 1.2 2005-10-12 14:35:46 mike Exp $
#
# See ../README for a description of this program.
# perl -I../../blib/lib -I../../blib/arch zoomtst1.pl <target> <query>
my $rs = $conn->search(-prefix => $query)
or die "can't search for '$query': ", $conn->errmsg();
my $n = $rs->size();
+print "Query '$query' found $n records\n";
### Note that the record-index is 1-based here, 0-based in ZOOM-C
for my $i (1..$n) {
-# $Id: zoomtst1.pl,v 1.2 2005-10-12 13:44:05 mike Exp $
+# $Id: zoomtst1.pl,v 1.3 2005-10-12 14:35:23 mike Exp $
#
# See ../README for a description of this program.
# perl -I../../blib/lib -I../../blib/arch zoomtst1.pl <target> <query>
$conn->option(preferredRecordSyntax => "usmarc");
my $rs = $conn->search_pqf($query);
my $n = $rs->size();
+ print "Query '$query' found $n records\n";
for my $i (0..$n-1) {
my $rec = $rs->record($i);
print "=== Record ", $i+1, " of $n ===\n";