How to create and test an Alma normalization rule

Background

An Alma norm rule is a file that contains syntax for actions to modify MARC records. This includes both MARC bibliographic and MARC holdings records.

The general structure of a normal rule:

rule "rule name"
when
     (record-level condition)
then
     Action1 (field-level condition, if applicable)
     Action2 (additional actions optional)
end

The first section of a rule contains the rule name. In the second section, you define the condition that is tested at the record level. The rule looks at the entire record to determine whether the condition is met. If the condition is met, the rule continues to the third section. That section contains an action or multiple actions. When you have more than one action, the actions are executed in order. Some of these actions may have conditions themselves. These conditions are tested at the field level. And finally, the last line is simply the end of the norm rule.

Ex Libris documentation on rule conditions.

Ex Libris documentation on rule actions.

Step-by-step guide

To create a norm rule, you must have one of the following roles: Cataloger, Catalog Manager, or Catalog Administrator.

There are two ways to create a norm rule: you can create a norm rule in the metadata editor, or you can duplicate an existing norm rule.

To create a norm rule in the metadata editor:

  1. Go to File > New > Normalization rules.
  2. In the dialog box that appears, the Name and Description fields are required.
  3. You can keep your rule Private, but in order to include the rule in a normalization process, you must select Shared.
  4. Select Enabled and click on Save.



  5. Create your norm rule in the metadata editor.
  6. When you're done, click on Save at the lower right corner of the screen.

To duplicate an existing norm rule, you'll want to find an existing norm rule that is similar to the rule you have in mind. You can then simply edit that rule to meet your needs.

  1. On the left pane of the metadata editor, select the Rules tab.
  2. Click on Normalization rules.
  3. Select the normalization rule and from the options that appear, select Duplicate.



  4. Rename the rule and make sure to edit the Description field accordingly.
  5. Click on Save.
  6. Edit the norm rule in the metadata editor.
  7. When you're done, click on Save at the lower right corner of the screen.

To test your norm rule, you'll first want to identify a bibliographic record containing elements that will allow you to effectively test your norm rule. 

  1. Open your selected bibliographic record in the metadata editor.
  2. Click on the split editor icon  on the upper right corner of the metadata editor, or simply click F6.
  3. The metadata editor will split into two panes.
  4. Click anywhere in the right pane.
  5. Go to the Rules tab.
  6. Select the norm rule you want to test, and from the options that appear select Edit.
  7. The norm rule will appear in the right pane.
  8. Click on the Preview button.
  9. The metadata editor will display the existing bibliographic record in the left pane, and the preview record (i.e. how the record would look if the norm rule were applied) in the right pane.

If you don't see the changes you were expecting to see in the right pane, click on Back to normalization rules, examine the rule carefully, and make any necessary edits. Click on Save and preview the rule again.

Ex Libris Documentation

Working with Normalization Rules

Normalization Rules Examples