How to move subfield into a new tag?
- Article Type: General
- Product: Voyager
- Product Version: 8.1.1
Question
How 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
Answer
This requires 2 Data Change Jobs and multiple rules.
- 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.
- Add Data Change Rule Set to Data Change Rule Set Group.
- Preview first change. Should show
- 020 _ _ |a 1234567890 |r 0987654321
- 920 _ _ |a 1234567890 |r 0987654321
- Execute Data Change Job.
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.
- 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.
- Add Data Change Rule Sets to Data Change Rule Set Group.
- Preview change. Should show
- 020 _ _ |a 1234567890
- 020 _ _ |a 0987654321
- Execute Data Change Job.
- Article last edited: 12-Jul-2017