Bug #2206


Tree editor does not properly process additionalMetadata items when "trimming"

Added by Will Tyburczy about 18 years ago. Updated over 13 years ago.

morpho - general
Target version:
Start date:
Due date:
% Done:


Estimated time:


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) |

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) |

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.

Actions #1

Updated by Callie Bowdish about 18 years ago

"Warning! Unable to trim following notes: eml/additionalMetadata/ANY/,

Please check if all the required values are entered and that there are no empty

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.

Actions #2

Updated by Will Tyburczy about 17 years ago

This seems very similar to resolved bug 2071 - maybe something similar to what was done to fix that bug can be done here?

Actions #3

Updated by ben leinfelder over 13 years ago

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)

Actions #4

Updated by ben leinfelder over 13 years ago

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.

Actions #5

Updated by Redmine Admin over 10 years ago

Original Bugzilla ID was 2206


Also available in: Atom PDF