Ed et al,2 more informations :
Thanks for responding so quickly.
On Thu, Sep 25, 2003 at 07:54:29AM -0400, Joshua Ferraro wrote:yes and no. My Z3950 Script calls the Koha subroutine MARCgetbiblio, puts the resulting string into a variable and then sends that string back to the user
Does anyone know how to add separators/terminators when building a singleJoshua, MARC::Record does this for you. Where is the code you used to generate
MARC record?
these records? Is it the Koha code?
via a hash ref managed by SimpleServer:
my $MARCRecord = &MARCgetbiblio($dbh,$bibid); my $recordstring=$MARCRecord->as_usmarc(); #print "here is my record: $recordstring\n";
# Return the record string to the client $args->{RECORD} = $recordstring;
So the problem may be either the way I am using MARCgetbiblio or MARCgetbiblio
itself...I'm not really sure which.
* the MARCgetbiblio returns a MARC::Record structure. If I save some of them in a file, I can dump them with a little dumpmarc.pl script, that uses MARC::Record.
* [IMPORTANT] there was a bug in MARCgetbiblio in Koha, that has been solved : the leader was filled with only 19 spaces. I think MARC::Record has a little problem with such bugs : it should either report an error, or add the missing chars when calculating length... in the leader. The bug had been solved BEFORE joshua question, so it's not related. It's related with it's previous questions (the one from sep 10).
Note : if needed, you can find me today (& joshua probably), on Koha irc : irc.katipo.co.nz:6667
-- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)