Skip to main content
ExLibris
  • Subscribe by RSS
  • ExLibris Dev

    Adding a comma before subfield $$x using a fix

    • 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
    //doorbell.io feedback widged