Project

General

Profile

Actions

Bug #5839

closed

Save for later may add duplicate 'codeDefinition' elements without defining the code

Added by ben leinfelder over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
morpho - general
Target version:
Start date:
01/30/2013
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5839

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>

Actions

Also available in: Atom PDF