Bug #2206
closed
Tree editor does not properly process additionalMetadata items when "trimming"
Added by Will Tyburczy about 19 years ago.
Updated almost 15 years ago.
Category:
morpho - general
Description
If a data package contains an additionalMetadata element (for example to define
a custom unit), the tree editor does not execute the "trim" function properly.
The editor insists that a value for the "any" element must be supplied, instead
of recognizing the element (in this example, unitList) that is intended to
replace it. If the user actually then fills in a value for the "any" element to
allow them to exit from the tree editor, invalid eml is generated. For example,
if you start with:
additionalMetadata
|
|
+--unitList
| |
| +(custom units defined in by the morpho wizard)
|
+--describes
After the trim function is done, you are left with:
additionalMetadata
|
|
+--unitList
| |
| +(custom units defined in by the morpho wizard)
|
+--ANY
| |
| +(whatever the user added to get the tree editor to exit)
|
+--describes
This forces the user to create invalid eml to exit the editor, which would then
prevent them from saving the data package onto the knb.
"Warning! Unable to trim following notes: eml/additionalMetadata/ANY/,
eml/additionalMetadata/ANY/
Please check if all the required values are entered and that there are no empty
fields."
The above dialog box comes up when trying to save in the Morpho Editor if the
show all feature is used. This happens if the data package includes the
additionalMetada element that is created by the Morpho Wizard custom unit feature.
Just using the show all feature and making no changes but clicking the ok button
will bring up this dialog box.
This seems very similar to resolved bug 2071 - maybe something similar to what was done to fix that bug can be done here?
does not seem to be a problem with current Morpho codebase (circa 1.8 release)
additionalMetadata has changed for EML 2.1 - could explain it. Or the previously mentioned bug that was closed (2071)
it seems that the "Show all" button can get us into dicey territory with the tree editor (adding all sorts of elements and such - trimming does not seem to delete them.
This is a larger issue with the tree editor and not specific to additional metadata....leaving closed since it does allow us to effectively edit additionalMetadata elements still.
Original Bugzilla ID was 2206
Also available in: Atom
PDF