The "if" condition in my normalization rule does not work
- Product: Alma
Description
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")
Resolution
The "if" condition works on the field level only. When you are working with field 040, you can only add conditions for field 040.
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
Additional Information
For more information on working with wildcards and special characters in normalization rules, view our documentation here.
- Article last edited: 27-JAN-2020