NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

Morpho doesn't enforce the users to input values of both the code and codeExplanation for the missingValueCode element #1057

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 6583, https://projects.ecoinformatics.org/ecoinfo/issues/6583 Original Date: 2014-08-11 Original Assignee: Jing Tao


EML specification requires the both code and codeExplanation elements for the missingValueCode element. However, in the attribute editing panel, a user can only input the value for the codeExplanation without the value for the code in Morpho. This cause to create an invalid eml document.

We should enforce users to input both values.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2014-08-12T23:05:26Z


In the AttributePage.java, the enforcement code was added in the onAdvance method. Users should fill both of them if they filled one of them.

The code was committed to the 1.10 branch and the trunk.