Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. How to build a MARC tag based on the contents of sfs from another two tags?

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

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to bring item data into holdings records
      • How to build z00r
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 20
      2. Cataloging (500)
      3. contype:kba
      4. Prod:Aleph
      5. Services
      6. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved