Bug #5839
closedSave for later may add duplicate 'codeDefinition' elements without defining the code
0%
Description
Shirley Han got this error message for a package she was editing.
Problem with saving to metacat in EML200DataPackage!
<error>cvc-complex-type.2.4.b: The content of element 'codeDefinition' is not complete. One of '{definition}' is expected.</error>
It had some wide dataTables and she had used the "save for later" option during the attribute documentation process.
I looked at the EML file and saw that many codeDefinition elements had been added but did not contain the <definition> element, only the was present.
I am not sure how this was introduced or if it was even because of the "save for later" feature.
example snippet from EML:
------------
<enumeratedDomain>
<codeDefinition>
<code>No</code>
</codeDefinition>
<codeDefinition>
<code>Yes</code>
</codeDefinition>
<codeDefinition>
<code>No</code>
</codeDefinition>
<codeDefinition>
<code>Yes</code>
</codeDefinition>
<codeDefinition>
<code>No</code>
<definition>No, the course is not required</definition>
</codeDefinition>
<codeDefinition>
<code>Yes</code>
<definition>Yes, the course is required</definition>
</codeDefinition>
</enumeratedDomain>