Skip to main content
ExLibris
  • Subscribe by RSS
  • ExLibris Dev

    How to move subfield into a new tag?

    • Article Type: General
    • Product: Voyager
    • Product Version: 8.1.1

    Desired Outcome Goal:
    To take an 020 with two subfields a and create 2 020 fields with one of the subfields a from the original in each - for example,
    020 _ _ |a 1234567890 |a 0987654321
    becomes
    020 _ _ |a 1234567890
    020 _ _ |a 0987654321

    Procedure:
    This requires 2 Data Change Jobs and multiple rules.
    1. Create rules for first Data Change Job:
    Rules > Data Change Rule Set > New
    Add rule: Change second occurrence of subfield a to (for example) subfield r.
    Add rule: Copy 020 to (for example) 920.
    Save.
    2. Add Data Change Rule Set to Data Change Rule Set Group.
    3. Preview first change. Should show
    020 _ _ |a 1234567890 |r 0987654321
    920 _ _ |a 1234567890 |r 0987654321
    4. Execute Data Change Job.
    NOTE: This creates the new fields/subfields for the subsequent job to act on; rules cannot change the fields until they exist, so the creation of the second field must occur & be committed first. Copying to different tag (920) necessary prior to 8.2.0 due to Issue 16384-17297. For 8.2.1 and higher, this is still useful workflow as it helps differentiate fields while changes are being made.
    5. Create rules for second Data Change Job
    Rules > Data Change Rule Set > New
    Add rule: Delete subfield r from 020 and delete subfield a from 920.
    Add rule: Change 920 subfield r to subfield a
    Save.
    Rules > Data Change Rule Set > New
    Add rule: Copy 920 to 020
    Add rule: Delete 920.
    Save.
    6. Add Data Change Rule Sets to Data Change Rule Set Group.
    7. Preview change. Should show
    020 _ _ |a 1234567890
    020 _ _ |a 0987654321
    8. Execute Data Change Job.

    Category: Global data change (GDC)


    • Article last edited: 10/8/2013
    //doorbell.io feedback widged