Project

General

Profile

Actions

Bug #4657

closed

morpho creates <keyword> elements out of keywordType attribute content

Added by Margaret O'Brien almost 15 years ago. Updated almost 15 years ago.

Status:
Resolved
Priority:
Normal
Category:
morpho - general
Target version:
Start date:
01/08/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4657

Description

the <keyword> element has an optional attribute keywordType, as in this snippet from knb-lter-sbc.17.12

<keywordSet>
<keyword keywordType="theme">Santa Barbara Coastal</keyword>
<keyword keywordType="theme">LTER</keyword>
</keywordSet>

EML created by Morpho does not include this attribute, but when Morpho encounters one, it takes the attribute content and moves it to a keyword element, yielding a node like this (knb-lter-sbc.17.13):
<keywordSet>
<keyword>theme</keyword>
<keyword>Santa Barbara Coastal</keyword>
<keyword>theme</keyword>
<keyword>LTER</keyword>
</keywordSet>

So now we have extra erroneous keywords, and no keywordType attributes.
Morpho seems to do this as soon as it reads the EML in, since the extra keywords show up immediately.

Note: this data set is still EML201, and so was was edited with Morpho 1.6.1. I confirmed the behavior with Morpho 1.7 and a local test dataset.

Actions

Also available in: Atom PDF