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

    Normalization rule to copy a subfield of a field to another field

    • Article Type: Q&A
    • Product: Alma

    Question

    Using a normalization rule, we want to copy only subfield $$a of field XXX to another field YYY. How can we achieve that?

    Answer

    You need to use a workaround where you do the following:
    1. Backup the current field XXX in a temporary field (let's call it ZZZ).
    2. Delete all subfields except $$a from XXX.
    3. Copy the field XXX to YYY.
    4. Restore the original field XXX by copying it from the temporary field ZZZ.
    5. Delete the temporary field ZZZ.

    Additional Information

    This is an example for copying subfield $$a of field 084 to a new field 984. A temporary field 983 is created in the process but will be deleted in the end:

    rule "Copy 084 to 984"
    when
    (TRUE)
    then
    CopyField "084" to "983"
    RemoveSubfield "084.b"
    RemoveSubfield "084.q"
    RemoveSubfield "084.2"
    RemoveSubfield "084.6"
    RemoveSubfield "084.8"
    CopyField "084" to "984"
    RemoveField "084"
    CopyField "983" to "084"
    RemoveField "983"
    end

    Category: Metadata editor - Alma


    • Article last edited: 5/6/2014