Project

General

Profile

Bug #2206

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

Added by Will Tyburczy over 14 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
morpho - general
Target version:
Start date:
09/22/2005
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2206

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.

History

#1 Updated by Callie Bowdish over 14 years ago

"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.

#2 Updated by Will Tyburczy over 13 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?

#3 Updated by ben leinfelder about 10 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)

#4 Updated by ben leinfelder about 10 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.

#5 Updated by Redmine Admin almost 7 years ago

Original Bugzilla ID was 2206

Also available in: Atom PDF