Project

General

Profile

Actions

Bug #2988

closed

Custom unit does not allways create the needed <additionalMetadata> tags

Added by Callie Bowdish about 17 years ago. Updated almost 15 years ago.

Status:
Resolved
Priority:
Normal
Category:
morpho - general
Target version:
Start date:
10/29/2007
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2988

Description

An example of a data package that had to be edited in a text editor is the following:
http://knb.ecoinformatics.org/knb/metacat?action=read&qformat=knb&docid=gss1.22&displaymodule=entity&entitytype=dataTable&entityindex=1

Here is part of the error reported in the stderr.log

<error>
Error processing keyrefs: //unit/customUnit : Error in xml document. This EML instance is invalid because referenced id partsPerBillion does not exist in the given keys.
</error>

There is a partsPerBillion, and a partsPerMillion custom unit that the user created using Morpho but when the dp was saved the necessary <additionalMetadata> tags were not created. Then we had to add the following, using a text editor, so that the data package would save up to the network.

<additionalMetadata><unitList><unit id="partsPerMillion" multiplerToSI=" " name="partsPerMillion" parentSI="molesPerCubicMeter" unitType="amountOfSubstanceConcentration"><description>partsPerMillion</description>
</unit>
</unitList>
</additionalMetadata>
<additionalMetadata><unitList><unit id="partsPerBillion" multiplerToSI=" " name="partsPerBillion" parentSI="molesPerCubicMeter" unitType="amountOfSubstanceConcentration"><description>partsPerMillion</description>
</unit>
</unitList>
</additionalMetadata>


Files

customUnitExample.xml (3.87 KB) customUnitExample.xml gastil gastil, 01/21/2010 03:37 PM
Actions

Also available in: Atom PDF