-# $Id: zoomtst1.pl,v 1.2 2005-10-12 13:44:05 mike Exp $
+# $Id: zoomtst1.pl,v 1.4 2006-11-02 17:48:26 mike Exp $
#
# See ../README for a description of this program.
# perl -I../../blib/lib -I../../blib/arch zoomtst1.pl <target> <query>
if (@ARGV != 2) {
print STDERR "Usage: $0 target query\n";
- print STDERR " eg. $0 bagel.indexdata.dk/gils computer\n";
+ print STDERR " eg. $0 z3950.indexdata.dk/gils computer\n";
exit 1;
}
my($host, $query) = @ARGV;
$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";