Joshua Ferraro wrote:

Ed et al,

Thanks for responding so quickly.


On Thu, Sep 25, 2003 at 07:54:29AM -0400, Joshua Ferraro wrote:


Does anyone know how to add separators/terminators when building a single
MARC record?


Joshua, MARC::Record does this for you. Where is the code you used to generate
these records? Is it the Koha code?


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
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.


2 more informations :
* 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)



Reply via email to