
Additive and Multiple Definitions
When you add definitions or use multiple ItemDefinitionGroups, remember the following:
When you have multiple ItemDefinitionGroups, each subsequent specification adds its metadata to the previous definition. For example:
<ItemDefinitionGroup>
<i>
<m>m1</m>
<n>n1</n>
</i>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<i>
<o>o1</o>
</i>
</ItemDefinitionGroup> In this example, the metadata "o" is added to "m" and "n".
In addition, previously defined metadata values can also be added. For example:
<ItemDefinitionGroup>
<i>
<m>m1</m>
</i>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<i>
<m>%(m);m2</m>
</i>
</ItemDefinitionGroup> In this example, the previously defined value for metadata "m" (m1) is added to the new value (m2), so that the final value is "m1;m2".
Note: |
|---|
| This can also occur in the same ItemDefinitionGroup. |
When you override the previously defined metadata, the last specification takes precedence. In the following example, the final value of metadata "m" goes from "m1" to "m1a".
<ItemDefinitionGroup>
<i>
<m>m1</m>
</i>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<i>
<m>m1a</m>
</i>
</ItemDefinitionGroup>