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. Adding a comma before subfield $$x using a fix

    Adding a comma before subfield $$x using a fix

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Problem Symptoms:
    Trying to add a comma before subfield $$x of field 440 using a script does not work.
    Line in ./xxx01/tab/import/440_fix
    1 440## REPLACE-STRING $xx,,$$x

    Cause:
    Defect

    Resolution:
    Replacing the comma is not possible in a fix script before Aleph 21

    Additional Information

    rep_ver 17548 in Aleph21

    Description: A new operation code - "REPLACE-STRING-GENERAL" - has been added to the set of operation codes available for the "fix_doc_do_file_08" fix program.
    This operation code will give the library the option to replace a string in a document field with another string.
    The difference between this new operation code and the existing "REPLACE-STRING" operation code is that "REPLACE-STRING" is hardcoded to use the comma character as a delimiter between the source string and the target string.
    The new operation code will give the library the option to choose the delimiter type.
    The first character in the "REPLACE-STRING-GENERAL" operation parameters will indicate the delimiter.
    From position two in the parameters the cataloger will configure the source string and the target string separated by the chosen delimiter.

    If the new development is needed,
    The REPLACE-STRING lines can be changed to use REPLACE-STRING-GENERAL operation code.
    For example:
    ! 2 3 4 5 6 7 8 9
    !-!!!!!-!!-!-!!!-!!!-!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    1 035## REPLACE-STRING-GENERAL $ocm$(OCoLC)
    In the above example, when processing field 035##, the string "ocm" will be replaced with the string "(OCoLC)".

    Category: Cataloging (500)

    Subject: Importing records (500)


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Adding 866_0 fields to ARC
      • Adding a document caused all docs to disappear from all courses in GUI
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 18.01
      2. Cataloging (500)
      3. contype:kba
      4. Importing records (500)
      5. Prod:Aleph
      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