]> git.koha-community.org Git - koha.git/commit
Bug 34014: Allow staff to edit degraded records
authorNick Clemens <nick@bywatersolutions.com>
Wed, 14 Jun 2023 19:05:14 +0000 (19:05 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 25 Oct 2023 21:58:37 +0000 (11:58 -1000)
commitc7a35b210e2cc6e7817d42464f68c67d67531b2a
tree5cc50bbc61977512cb417d4220af140b56a55e64
parent8c0ee5ce0dbeb5427b214060483e5235d8a6fa73
Bug 34014: Allow staff to edit degraded records

This patch adds an eval to the call for the record form metadata

If there is an error we catch it, display it, and attempt to strip bad characters from the record

To test:
1 - In koha testing docker attempt to view record 369 in the staff interface
2 - You see a warning about degraded view
3 - Attempt to edit the record
4 - Internal server error
5 - Apply patch, restart all
6 - Reload the editor
7 - Record successfully loads!
8 - You have a warning about encoding issues!
9 - Save the record
10 - No more warning!
11 - Edit again, no more warning!

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 66d519ae41756c38ecc6baef622c30ef596b599c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Biblio.pm
cataloguing/addbiblio.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt