Bug 41049 - Add additional deleting capabilities to the cataloging macros
Summary: Add additional deleting capabilities to the cataloging macros
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-17 18:11 UTC by Gretchen Maxeiner
Modified: 2025-10-17 18:11 UTC (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).