Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    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:
    1. 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
    2. Save the record - the blank subfields will be removed.

    If the subfield you wish to keep is NOT the first:
    1. 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
    2. Save the record - the blank subfield will be removed.
    3. Repeat until the subfield you wish to keep is the first subfield.
    4. Create a normalization rule to make all but the first subfield blank (as shown above) and save.


    • Article last edited: 8/18/2015