List Info

Thread: Re: Problems with SBN




Re: Problems with SBN
country flaguser name
Denmark
2007-02-15 06:06:44
bargioni wrote:
> Hi,
> using yaz-client I can correctly search
opac.sbn.it:2100/nopac.
> However, programmatically, using Net:Z3950 in a Perl
script, I obtain
> 
> FATAL (yazwrap): illegal/unsupported `which' (1) in
Z_OtherInformationUnit
> Aborted

This means that somebody is giving the struct
Z_OtherInformationUnit
defined in YAZ in file z-core.h, namely

01279 struct Z_OtherInformationUnit {
01280         Z_InfoCategory *category; /* OPT */
01281         int which;
01282         union {
01283                 Z_InternationalString *characterInfo;
01284                 Odr_oct *binaryInfo;
01285                 Z_External *externallyDefinedInfo;
01286                 Odr_oid *oid;
01287 #define Z_OtherInfo_characterInfo 1
01288 #define Z_OtherInfo_binaryInfo 2
01289 #define Z_OtherInfo_externallyDefinedInfo 3
01290 #define Z_OtherInfo_oid 4
01291         } information;
01292 };
01293


something else than a int of value 1-4, namely

01287 #define Z_OtherInfo_characterInfo 1
01288 #define Z_OtherInfo_binaryInfo 2
01289 #define Z_OtherInfo_externallyDefinedInfo 3
01290 #define Z_OtherInfo_oid 4

Who does this, and why it happens, we can not deduce from
the 
information given in your posting, but either
  Net:Z3950 or your Perl script is the probable culprit.

Marc Cromme, Index Data

> 
> My script runs correctly with a lot of Z39.50 sources
but SBN.
> Any help?
> Thanks a lot. Stefano
> 
> _______________________________________________
> Yazlist mailing list
> Yazlistlists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
> 


-- 

Marc Cromme
M.Sc and Ph.D in Mathematical Modelling and Computation
Senior Developer, Project Manager

Index Data Aps
Købmagergade 43, 2
1150 Copenhagen K.
Denmark

tel: +45 3341 0100
fax: +45 3341 0101

http://www.indexdata.com


INDEX DATA Means Business
for Open Source and Open Standards





_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )