Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Alma

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Alma
    3. Knowledge Articles
    4. Normalization rule to delete a field unless it has a specific content

    Normalization rule to delete a field unless it has a specific content

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Question
    2. Answer
    3. Additional Information
    • Article Type: Q&A
    • Product: Alma

    Question

    We would like to delete all 035 fields that start neither with "(OCoLC)" nor with "(LCCN)". How can we achieve that?

    Answer

    Use the following normalization rule:

    rule "035 Tag"
    when
    (TRUE)
    then
    copyField "035" to "935" if (exists "035.a.(LCCN)*")
    copyField "035" to "935" if (exists "035.a.(OCoLC)*")
    removeField "035"
    copyField "935" to "035"
    removeField "935"
    end

    Additional Information

    We need a workaround here because we have two conditions, and the IF command allows only one condition.
    Neither it is possible to use a WHEN condition because WHEN checks the entire record and will not change any field if it finds at least one field of the value "(OCoLC)" or "(LCCN)".
    Note that the above-mentioned rule involves the creation of a temporary field 935. Check in advance if field 935 is not in usage in your records! If it is, you need to choose another field here because otherwise desired content might be deleted. Contact Ex Libris Support if you do not understand what the above normalization rule is doing so that we can keep you from deleting content that is actually needed.

    Category: Resource Management - Alma


    • Article last edited: 5/15/2014
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Normalization rule to copy a subfield of a field to another field
      • normalization rule to remove field 003
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      English
      Product
      Alma
    2. Tags
      1. contype:kba
      2. Resource Management - Alma
    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