[Koha-bugs] [Bug 35104] We should warn when attempting to save MARC records that contain characters invalid in XML

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 23 04:27:33 CEST 2023


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

--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
I've written a Javascript based check which *mostly* gets us there. It checks
the input[text] and textarea fields for bytes that aren't allowed in XML and it
raises an alert if it finds any.

I haven't figured out a way to get the "Go to field" to work though, as I need
the tab where the HTML element is found, but we aren't recording that data
anywhere at the moment. We have a "tabindex", but it seems hard-coded to 0 or 1
for some reason...

I would attach my patch here on Bugzilla, but "git-bz" isn't working for me
right now...

I've run out of steam on this one anyway, but hopefully I can share my code and
someone else can take it away...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list