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

    COPY-FIELD" in generic fix doc script wipes out original field

    • Article Type: General
    • Product: Aleph
    • Product Version: 17.01

    Description:
    We are trying to copy the RLIN 852 field to a 950 field while preserving the original 852 field:

    This is the rlin.fix "generic fix" we are using:

    1 852## COPY-FIELD 950
    1 950## CHANGE-SUBFIELD b,l
    1 001 COPY-SYSTEM-NUMBER 0359 ,L,a,(CStRLIN)
    1 001 DELETE-FIELD 001


    [ <Jerry Specht > ]

    [ <Jerry Specht > ]

    Resolution:
    The "Generic Fix Doc Script Specification" says: "(If it is necessary to duplicate a field, tag and all, first COPY FIELD to a temporary tag, then CHANGE FIELD to the desired tag.)"

    Changing the first line in the script to use the temporary tag "999" and inserting a CHANGE-FIELD line worked:

    1 852## COPY-FIELD 999
    1 999## CHANGE_FIELD 950
    1 950## CHANGE-SUBFIELD b,l
    2 950## COPY-FIELD 852
    2 001 COPY-SYSTEM-NUMBER 0359 ,L,a,(CStRLIN)
    2 001 DELETE-FIELD 001

    Additional Information

    fix doc script, COPY-FIELD


    • Article last edited: 10/8/2013