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

    The "if" condition in my normalization rule does not work

    • Article Type: General
    • Product: Alma

    Problem Symptoms:
    I have a normalization rule with an "if" condition but on saving I get a compilation error. This is the line in the rule containing the condition:

    addSubField "040.b.ita" if (existsControl "008.{35,3}.ita")

    Cause:
    The "if" condition works on the field level only. When you are working with field 040, you can only add conditions for field 040.

    Resolution:
    Use the "when" condition which is working on the record level. The following example will work:

    when
    (existsControl "008.{35,3}.ita")
    then
    addSubField "040.b.ita"
    end

    Category: Metadata editor - Alma


    • Article last edited: 5/7/2014