Bug 41049

Summary: Add additional deleting capabilities to the cataloging macros
Product: Koha Reporter: Gretchen Maxeiner <maxeinergl>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Gretchen Maxeiner 2025-10-17 18:11:51 UTC
It would be helpful to have syntax added to the Advanced Editor's cataloging macros for the following:
1) ability to delete fields based on indicator
2) ability to delete subfields on all instances of a field, not just the first instance of the subfield / first instance of the field. 

A use case scenario would be importing records from Z39.50 sources and using a macro to strip fields/subfields that are always unwanted.

Deleting fields based on indicator would allow one to strip subjects from unwanted thesauri, for example 650 _1... for a juvenile SH or 650 _2 for MESH. 

Deleting subfields on all instances would allow one to strip coded and linking subfields from authorized heading fields. Sometimes the same subfield repeats in the same instance of the field (for example, multiple $4's in a 100 field), and sometimes a field number has multiple instances (for example, multiple 650 fields, all with $0 linking subfields).