Bug 34191

Summary: Record overlay rule to protect 942 with asterisk being ignored with z39.50 overlay
Product: Koha Reporter: Esther Melander <esther.melander>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy, michaela.sieber
Version: 22.11   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33268
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Esther Melander 2023-07-03 17:28:28 UTC
To recreate:

1. Create multiple Record overlay rules with Source, z39.50, TAG, protect, skip, skip, skip, skip. 
2. Create Record overlay rule Source, *, 942, Protect, skip, skip, skip, skip.
3. Find a bib record and make sure it contains a 942 with selected item type.
4. Replace record via z39.50 (using the basic editor)
5. Edit the bib and change the protected tags in the overlay rules for z39.50.
5. Attempt to save the record. If 942 is a required field, you must select the item type. If that happens, select an alternate item type.

The record will save and restore the tags protected through the z39.50 overlay rules. But the record will also save the alternate item type and not protect/restore the 942 tag to the previous item type. The asterisk should protect the 942 tag regardless of the cataloging process.