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

    How to build a MARC tag based on the contents of sfs from another two tags?

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

    Desired Outcome Goal:
    Creation of a 222-field based on the contents of subfields from another two tags in the following way:
    Copy 245 $a to 222 0$a and copy 260 $a to 222 0$b
    This is how it should look after the change:

    000000001 222 0 L $$aTelephony$$b(Chicago, U.S.A.)
    000000001 245 L $$aTelephony
    000000001 260 L $$aChicago, U.S.A.$$bChambers-McMeal Co.

    Procedure:
    The following lines in a file-08 script create a proper field 222:

    ! 2 3 4 5 6 7 8 9
    !-!!!!!-!!-!-!!!-!!!-!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    1 245## COPY-FIELD 222 ,L
    2 222 DELETE-SUBFIELD b
    2 222 DELETE-SUBFIELD c
    2 222 DELETE-SUBFIELD f
    2 222 DELETE-SUBFIELD g
    2 222 DELETE-SUBFIELD h
    2 222 DELETE-SUBFIELD k
    2 222 DELETE-SUBFIELD n
    2 222 DELETE-SUBFIELD p
    2 222 DELETE-SUBFIELD s
    3 260## COPY-FIELD 22A ,L
    3 22A REPLACE-STRING :,
    4 22A DELETE-SUBFIELD b
    4 22A DELETE-SUBFIELD c
    4 22A DELETE-SUBFIELD e
    4 22A DELETE-SUBFIELD f
    4 22A DELETE-SUBFIELD g
    4 22A CHANGE-SUBFIELD a,b
    5 222 CONCATENATE-FIELDS 22A ,b
    6 22A DELETE-FIELD
    "222_fix" 113L, 5143C

    Example in:
    24500 L $$aTelephony. :$$bmobile phones and other news /$$cDorian Smith.
    260 L $$aChicago, U.S.A. :$$bChambers-McMeal Co.,$$c2012.

    Example out:
    24500 L $$aTelephony. :$$bmobile phones and other news /$$cDorian Smith.
    260 L $$aChicago, U.S.A. :$$bChambers-McMeal Co.,$$c2012.
    222 L $$aTelephony. :$$bChicago, U.S.A.

    Category: Cataloging (500)

    Subject: Services


    • Article last edited: 10/8/2013
    • Was this article helpful?