X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=samples%2Fnet-z3950-zoom%2Fzoomtst3.pl;h=472b846821016525f357f9b367e2b653ad8b5bf4;hb=ae5c2b81234af64a77295188f6fc90ede3589723;hp=b3a89d13180b9e0ba09e4bb9d7de8b44c09d4749;hpb=ea3a42f05a2201e16bebb7b4128aa30802e33c80;p=ZOOM-Perl-moved-to-github.git diff --git a/samples/net-z3950-zoom/zoomtst3.pl b/samples/net-z3950-zoom/zoomtst3.pl index b3a89d1..472b846 100644 --- a/samples/net-z3950-zoom/zoomtst3.pl +++ b/samples/net-z3950-zoom/zoomtst3.pl @@ -1,7 +1,9 @@ -# $Id: zoomtst3.pl,v 1.4 2006-04-07 10:59:18 mike Exp $ +# $Id: zoomtst3.pl,v 1.7 2006-04-07 12:39:06 mike Exp $ # # See ../README for a description of this program. # perl -I../../blib/lib -I../../blib/arch zoomtst3.pl [...] +# for example: +# perl -I../../blib/lib -I../../blib/arch zoomtst3.pl z3950.loc.gov:7090/Voyager bagel.indexdata.com:210/gils endeavor.flo.org:7090/Voyager mineral use strict; use warnings; @@ -23,7 +25,7 @@ Net::Z3950::ZOOM::options_set($o, count => 10); # Preferred record syntax Net::Z3950::ZOOM::options_set($o, preferredRecordSyntax => "usmarc"); -Net::Z3950::ZOOM::options_set($o, elementSetName => "F"); +Net::Z3950::ZOOM::options_set($o, elementSetName => "B"); # Connect to all targets: options are the same for all of them for (my $i = 0; $i < $n; $i++) { @@ -41,7 +43,11 @@ while ((my $i = Net::Z3950::ZOOM::event(\@z)) != 0) { my $ev = Net::Z3950::ZOOM::connection_last_event($z[$i-1]); print("connection ", $i-1, ": event $ev (", Net::Z3950::ZOOM::event_str($ev), ")\n"); - ### It would be nice to display results as they come in. + # It would be nice to display results as they come in, but the + # ability to do so is dependent on the END event, which was + # introduced only in YAZ 2.1.17. If you have a sufficiently new + # YAZ, please use the alternative "async.pl", which is similar to + # this program except in its asynchronous display. } # No more to be done. Inspect results