https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42528
--- Comment #2 from David Nind <[email protected]> --- Created attachment 198788 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198788&action=edit Bug 42528: Make metadata_record use record_strip_nonxml by default This patch adds protection to fetching the record by default to allow users and internal callers to proceed without errors when a record has minor encoding issues This also makes 'get_coins' use 'metadata_record' rather than 'metdata->record' but this doesn't have additional affects To test: 1 - View record 369 in the staff interface: http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=369 2 - Note warnings about encoding errors 3 - Try to click the 'MARC' or 'ISBD' tabs, try to export the record 4 - Fail with error: Invalid data, cannot decode metadata object (biblio_metadata.id=368, biblionumber=369, format=marcxml, schema=MARC21, decoding_error=':8: parser error : PCDATA invalid Char value 31 <controlfield tag="001">00␟aD000015937</controlfield> 5 - Search for 'Strk̆v̜elser' - confirm no results 6 - Reindex records sudo koha-elasticsearch --rebuild kohadev sudo koha-rebuild-zebra -v -f kohadev 7 - Note the errors 8 - Apply patch, restart all 9 - Reload details page and confirm you can view all the pages, and export 10 - reindex all records as above 11 - Confirm a search works Signed-off-by: David Nind <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ 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/
