]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 20 Oct 2023 14:02:58 +0000 (11:02 -0300)
commit66d519ae41756c38ecc6baef622c30ef596b599c
treeaf9c5044bb876bcbd314d2a588a7190307614867
parentb905bf5d0e6eedd5b952d6b91580458cff0d45fc
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>
C4/Biblio.pm
cataloguing/addbiblio.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt