Bug 30682

Summary: Indicate in addbiblio.pl when an edit will not be saved due to Overlay Rules
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 14957    
Bug Blocks:    

Description Andrew Fuerste-Henry 2022-05-04 19:15:05 UTC
The new MARC overlay rules can prevent edits to certain MARC fields. We don't give any indication when that's happening.

To recreate:
- set a rule on marc-overlay-rules.pl for module=source, filter=Staff client MARC editor, tag=020, preset=protect
- find a record with an 020
- edit the record, delete the 020, save. confirm the interface allows all of this
- confirm the 020 is still there, but no indication of why

Something here should inform the user of what's going on. Highlighting of the tag within the edit interface? A popup on saving?
Comment 1 Jonathan Druart 2022-06-07 14:04:54 UTC
I wrote a patch on https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126667

Can be useful to start.