| Posted on 2007-05-10 13:51:22-07 by gveranis |
| Handle results |
|
Hello ,
How I can handle the results from a query that i made with ZOOM?\
My code for example is :
#!/usr/bin/perl
use Encode;
use ZOOM;
use MARC::Record;
eval {
my $host="Z3950cat.bl.uk";
my $port="9909";
my $db="BLAC";
my $syntax="SUTRS";
my $conn = new ZOOM::Connection($host, $port,databaseName => $db);
$conn->option(preferredRecordSyntax => $syntax);
##---------------------------------------------------------------------------
#my $p=$conn->package();
#my $o=new ZOOM::ScanSet();
# $p=$conn->package($o);
#--------------------------------------------------------------------------
#$rs->option(elementSetName => "f");
#my $rs = $conn->search_pqf('@attr 1=7 9783540716761');
my $rs = $conn->search_pqf('@attr 4=1 @and @attr 1=4 "Public key cryptography" @attr 1=1018 "Spring
+er"');
my $n = $rs->size();
print "Found ",$n ," records\n\n";
my $rec;
for $i (1 .. $n) #ta typonei ola o,ti vrei..
{
$rec=$rs->record($i-1);
print $rec->render("utf8"),"\n";
}
};
if ($@) {
print "Error ", $@->code(), ": ", $@->message(),"::",$@->addinfo(),"\n";
}
and the results are (one for example):
Found 19 records
LC Control No.: 2007923868
Nat.Bib.Agcy.Ctl.No: 983484872 GyFmDB
ISBN: 9783540716761 (pbk.) : No price
ISBN: 3540716769 (pbk.) : No price
System Control No.: (OCoLC)122935615
Cataloging Source: OHX OHX Uk
Authentication Code: ukblsr
Subject Cat. Code: QA lcco
Dewey DC Class. No.: 005.82 22
ME-Meeting Name: International Conference on Theory and Practice in Public Key Cryptography (10th : 2007 : Beijing, China)
DSC Conf. Hdg.: International Conference on Theory and Practice in Public Key Cryptography (10th : 2007 Apr : Beijing, China)
Title: Public key cryptography - PKC 2007 : 10th International Conference on Practice and Theory in Public-Key Cryptography, Beijing, China, April 16-20, 2007 : proceedings / Tatsuaki Okamoto, Xiaoyun Wang (eds.).
Imprint: Berlin ; [London] : Springer, c2007.
Phys.Description: xiii, 489 p. : ill. ; 24 cm.
Series-Title: Lecture notes in computer science, 0302-9743 ; 4450
General Note: International conference proceedings.
General Note: Copyright by International Association for Cryptologic Research.
Bibliography Note: Includes bibliographical references.
DSC Conf. Note: Papers.
Subject-Topical-LC: Public key cryptography Congresses.
Index Term- Unctrl: PKC
Index Term- Unctrl: Cryptology
Added Person Name: Okamoto, Tatsuaki.
Added Person Name: Wang, Xiaoyun, 1966-
Added Corporate: International Association for Cryptologic Research.
DSC Shelvg. Ti.: Lecture notes in computer science ISSN 0302-9743 ; no 4450 2007
Finished Cataloguin: Y 20070424
Source ID: Z39 OCLC
Location: British Library DSC 5180.185000 no. 4450
Location: British Library STI (P) PL 50 -E(30) 4450 blsrissc
I just a few things from this record...
Thanks in advance for your help
George |
| Direct Responses: Write a response |