[Koha-devel] MARC::Record, record length and leader

Julian Maurice julian.maurice at biblibre.com
Wed May 9 09:23:58 CEST 2012


Le 07/05/2012 17:30, Galen Charlton a écrit :
> Hi,

Hi!

>
> On May 4, 2012, at 10:38 AM, Julian Maurice wrote:
>> In order to close this discussion, I created a ticket on rt.cpan.org (https://rt.cpan.org/Public/Bug/Display.html?id=76990) and attached a patch to force record length to not be greater than 99999 in the leader.
>
> This would have the effect of having MARC::Record output invalid records that we *know* are invalid.  There's no way around it -- an ISO2709 blob can be no longer than 99999 octets, and a strict parser (a couple of which do exist in the wild) would drop records where the Leader/05 does not match the length of the record as determined by the location of the record terminator character.

Actually, MARC::Record will always output invalid records if they're 
longer than 99999 bytes. But with the patch, at least the leader is 
well-formed (24 chars long).

>
> I'm much more inclined to accept a patch to MARC::Record that introduces a more forgiving input parsing mode.
>

What do you mean by "a more **forgiving** input parsing mode" ?

-- 
Julian Maurice <julian.maurice at biblibre.com>
BibLibre


More information about the Koha-devel mailing list