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

Galen Charlton gmc at esilibrary.com
Mon May 7 17:30:03 CEST 2012


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.

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

Regards,

Galen
--
Galen Charlton
Director of Support and Implementation
Equinox Software, Inc. / The Open Source Experts
email:  gmc at esilibrary.com
direct: +1 770-709-5581
cell:   +1 404-984-4366
skype:  gmcharlt
web:    http://www.esilibrary.com/
Supporting Koha and Evergreen: http://koha-community.org & http://evergreen-ils.org



More information about the Koha-devel mailing list