Donate Share

Visual Basic Binding of ZOOM Z39.50 API

Tracker: Bugs

5 Cached Records Improperly Returned - ID: 596148
Last Update: Settings changed ( thabing )

I'm using the VB ZOOM binding in Javascript. I get a
result set, set B
records and SUTRS recsyntax and get a raw record.
OK, nice text record. I
now set F and UNIMARC rec syntax re-get the record.
Still a text record. Am
I missing something?

(Server is the Bayerische Staatsbib.)

http://www-opac.bib-bvb.de/subbvb/ordbvb/tp2.htm


Thomas G. Habing ( thabing ) - 2002-08-16 17:15

5

Closed

None

Nobody/Anonymous

None

yaz

Public


Comments ( 5 )




Date: 2002-08-20 14:23
Sender: thabingProject AdminAccepting Donations

Logged In: YES
user_id=470665

We've released YAZ 1.8.9 with a fix for this. Please try it out


Date: 2002-08-20 14:22
Sender: thabingProject AdminAccepting Donations

Logged In: YES
user_id=470665

We've released YAZ 1.8.9 with a fix for this. Please try it out


Date: 2002-08-19 15:14
Sender: thabingProject AdminAccepting Donations

Logged In: YES
user_id=470665

I've verified this to be bug in ZOOM C YAZ. I'll be back
tomorrow.

-- Adam


Date: 2002-08-16 17:17
Sender: thabingProject AdminAccepting Donations

Logged In: YES
user_id=470665

You've probably seen this, but here it is just in case you're not
reading the ZOOM mailing list. Looks like you've fallen for the
old
"cache associated with the record object" bug. Net::Z3950
used to do
that up till version 0.14 too!


Date: 2002-08-16 17:16
Sender: thabingProject AdminAccepting Donations

Logged In: YES
user_id=470665

I've verified this to be a problem. The only workaround I can
offer at the
moment is to redo the search between changing the record
syntax or the
element set, such as in this VB snippet:

zconn.SetOption "preferredRecordSyntax", "SUTRS"
zconn.SetOption "elementSetName", "B"
Set zrs = zconn.Search(zq)
Set zr = zrs.GetRecord(0)
AppendText zr.GetRecordSyntax
AppendText zr.RawData

zconn.SetOption "preferredRecordSyntax",
"UNIMARC"
zconn.SetOption "elementSetName", "F"
Set zrs = zconn.Search(zq)
Set zr = zrs.GetRecord(0)
AppendText zr.GetRecordSyntax
AppendText zr.RawData

Note that contrary to the documentation, I am actually setting
the various
resultset options on the connection object. This seems to
work better, not
sure why.

Since all that VBZOOM does is put a wrapper on top of the
corresponding YAZ
ZOOM functions, I suspect that YAZ is doing some sort of
caching that isn't
getting properly purged or reset when recordSyntax or
elementset options are
changed. Although, this could very well be a function of my
use (or misuse)
of the YAZ ZOOM functions. Are there any YAZers out there
who could
comment?

I'll look into this more for the next release.


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
close_date 2002-11-28 05:02 2002-11-28 05:05 thabing
artifact_group_id None 2002-11-28 05:05 thabing
close_date 2002-09-03 15:06 2002-11-28 05:02 thabing
status_id Open 2002-11-28 05:02 thabing
status_id Closed 2002-09-03 15:07 thabing
status_id Open 2002-09-03 15:06 thabing
close_date - 2002-09-03 15:06 thabing