https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42512

--- Comment #3 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 201651
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201651&action=edit
Bug 42512: Pass already checked/cleaned MARC::Record to Metadata Extractor

To test:
1 - In Koha testing docker record 369 has invalid xml, otherwise corrupt a
record like:
    sudo koha-mysql kohadev
    UPDATE biblio_metadata SET metadata = UpdateXML(metadata,
'//datafield[@tag="040"]/subfield[@code="c"]',CONCAT('<subfield
code',CHAR(27),'="c">OSt</subfield>')) WHERE
 biblionumber=438;
2 - View the record in the staff client - note bad metadata message
    http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=438
3 - Click 'Edit'
4 - Error 500, in logs:
    Invalid data, cannot decode metadata object
5 - Apply patch, restart all
6 - Reload record and click edit
7 - Success! Message about bad metadata, but can edit/save

Signed-off-by: Phil Ringnalda <[email protected]>
Signed-off-by: Martin Renvoize <[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/

Reply via email to