How to remove all but one of several similar subfields in the same field in MD Editor
- Article Type: General
- Product: Alma
Procedure:
If the subfield you wish to keep is only the first subfield a:
- Create a normalization rule to make all but the first subfield a blank (replace XXX with the relevant field number):
rule "make all subfields a but the first blank"
when
(TRUE)
then
replaceContentsExceptFirst "XXX.a" with ""
end - Save the record. The blank subfields will be removed.
If the subfield you wish to keep is NOT the first:
- Remove the first subfield only (replace XXX with the relevant field number):
rule "make all subfields a but the first blank"
when
(TRUE)
then
replaceContentsOnlyFirst "XXX.a" with ""
end - Save the record. The blank subfield will be removed.
- Repeat until the subfield you wish to keep is the first subfield.
- Create a normalization rule to make all but the first subfield blank (as shown above) and Save.
- Article last edited: 8/18/2015