https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27365
--- Comment #43 from David Cook <[email protected]> --- (In reply to Didier Gautheron from comment #0) > These non-conformed marxml will fail in various places. Export, search > results list with elasticsearch which store ISO 2709 record in index and > use them as data source in results list. (In reply to Julian Maurice from comment #21) > I tried importing a MARCXML file with a field containing more than 9999 > characters and while the import was successful. It resulted in a lot of > garbage in the stored MARCXML (ASCII 30 and 29 in random places) > > I think it should be fixed by fixing MARC::Record (not sure how ? excluding > big fields from the output ? truncating ? ...), and/or by stopping to use > iso2709 in koha wherever we can. > For instance, when importing a MARCXML file I believe Koha convert it to > iso2709 (for storing into import_records table) and then back to MARCXML > (when creating the biblio). -- So bug 38416 fixes the "search results list". That leaves... export, import, and anything else not listed here so far. -- As I note on bug 38416, the tricky part is that MARC::Record doesn't actually fail to create an object when you give it invalid ISO 2709. So the only way I could find to really detect it was to try round-tripping the file. For indexing, I found it didn't add any noticeable overhead. On a big import or export, it might be different. I suppose there are also a number of different places in the code where export and import can happen. For the export, it should be an easy fix. If it fails to generate the ISO MARC, we show a user friendly message and fail gracefully. For the import, I suppose we need to do something similar. -- 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/
