Bug #3473
closedallow user to attach, replace, or delete data table on existing entity description
0%
Description
Currently users can describe a data table in Morpho without importing the data. This causes the attributeList to be filled out, but the data table is not associated with the package. This feature used to exist, but apparently has been removed, and we need to add it back. Its a relatively simple matter of:
1) Add the data table to the profiles/data directory with an appropriate id number
2) Add an online distribution URL to the physical element of the entity description
This would look like this:
<distribution>
<online><url>ecogrid://knb/jones.354.1</url></online>
</distribution>
If Morpho was used to describe the data, there may already be an empty offline distribution description, which should be deleted if it is empty:
<distribution>
<offline><mediumName> </mediumName></offline>
</distribution>
It's not clear to me why this is being created in the first place -- we should probably stop creating it, but that is a separate issue.
3) This procedure assumes that the newly attached entity matches the existing entity and attribute list, which may be a bad assumption. We should probably test if they are in agreement (e.g., right # and types of columns)
4) Add a GUI element that allows one to attach a data table for an entity that currently doesn't have an attached table
That should do it.