[Bug 44072] New: Report repairs made to authority records in TransformHtmlToMarc instead of stripping silently
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44072 Bug ID: 44072 Summary: Report repairs made to authority records in TransformHtmlToMarc instead of stripping silently Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Target Milestone: --- Follow-up to bug 43776. Bug 43776 makes TransformHtmlToMarc repair and report invalid characters for bibliographic records (the repairs are recorded as biblio_metadata_errors rows and shown to the cataloguer). It deliberately leaves authority records alone: when $isbiblio is false, TransformHtmlToMarc still calls StripNonXmlChars inline, so invalid characters typed or pasted into an authority record are dropped without any feedback. Authority records are not saved through Koha::Biblio::Metadata, so the biblio mechanism (repair_marcxml, add_repairs, object_messages) cannot simply be reused. This bug is to design and implement an equivalent for authorities: - Decide where repairs are recorded for authorities (if anywhere) and how they are reported to the cataloguer. - Report the removed characters on authorities/authorities.pl (and authorities/merge.pl) instead of dropping them silently. Callers affected: authorities/authorities.pl and authorities/merge.pl (TransformHtmlToMarc( $input, 0 )). Test plan: 1. Apply the patch. 2. Edit or create an authority record and paste text containing a control character (for example 0x1F) into a subfield. 3. Save the record. 4. Confirm the record saves and the cataloguer is told which characters were removed. 5. prove t/db_dependent/Biblio/TransformHtmlToMarc.t and the authority tests. Sponsored-by: OpenFifth -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44072 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |43776 Assignee|koha-bugs@lists.koha-commun |martin.renvoize@openfifth.c |ity.org |o.uk Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43776 [Bug 43776] TransformHtmlToMarc should repair and report invalid characters rather than silently stripping them -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org