[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 13:29:36 CEST 2023


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #157628|0                           |1
        is obsolete|                            |

--- Comment #9 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 157642
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157642&action=edit
Bug 35104: Alert when inserting text invalid in XML into bib record

This change adds a Javascript based alert when a user tries to save
data via the bib record editor that is invalid in XML.

Test plan:
0. Apply patch
1. Go to
http://localhost:8081/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=
2. Copy the data from "Text file containing control characters"
3. Paste the data into 245$a and 500$a
4. Click "Save"
5. Note the alerts at the top of the web page and that the record does not save
6. Resolve the problems
7. Click "Save"
8. Note that the record saves

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
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