Bug #2563
open
Multiple repeated delimiter info not saved
Added by Dan Higgins about 18 years ago.
Updated over 14 years ago.
Category:
morpho - general
Description
There is now an eml element for saving info about repeated delimiters (i.e. 'collapseDelimiters') but apparently Morpho does not insert this element into the eml it creates or show it in the treeEditor.
it looks like there is code to put it in the additional metadata part of the EML doc.
but there were 18 entries of the same additional metadata block:
<additionalMetadata><describes>1261604888931</describes>
<metadata><consecutiveDelimiters>true</consecutiveDelimiters>
</metadata>
</additionalMetadata>
<additionalMetadata><describes>1261604888931</describes>
<metadata><consecutiveDelimiters>true</consecutiveDelimiters>
</metadata>
</additionalMetadata>
...........
additionalMetadata for consecutive delimiters were being copied any time data entities were added/replaced. This could happen a few times during the course of an import and then would happen again and again as entities were edited in a DP.
I've now added a check when adding and replacing entities such that additionalMetadata is only copied if it does not already exist.
I do note that there's no current mechanism to remove this bit of additionalMetadata if an entity is removed from the datapackage. That should probably be considered...
Original Bugzilla ID was 2563
Also available in: Atom
PDF