https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27365
--- Comment #31 from Thomas Klausner <[email protected]> --- > But the part that can't be cheated is the "directory". It has a fixed format > of 12 characters, and a field length cannot be longer than 9999 no matter > what. If it's greater, then it becomes impossible to parse the directory. yeah, I learned that recently (while reading code & spec). But as I stated in my original comment, MARC::Record should handle invalid data (i.e. field > 9999 bytes). Either by rejecting the data (i.e. throwing an exception) or truncating the data. Or let the user decide which of the two via a flag. But generating an invalid record that cannot be parsed back is definitely a bug. > That said... in theory the MARC standard could be changed/hacked, so that > the "20 - Length of the length-of-field portion" could be longer, and then > the MARC processing library could interpret a directory as having longer > field lengths... I guess you're joking. I cannot imagine that this 24 year old standard can be changed, esp. as we have things like MARCXML :-) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
