[GeoNetwork-devel] Potential bug in metadocument creation for ISO19139?

Hi,

In another thread titled “what is the effect of the selection geonet:child[…]”, I came to know about the geonet:child elements being added to metadocument according to the schema definition.

With further study, I observed that they are added only if the corresponding element is missing from the record. for e.g. if gmd:title is missing from record, a <geonet:child name=“title” prefix=“gmd” … > is added to metadocument but if it is present in the record, geonet:child for it is not added.

But for gmd:hierarchyLevel, even if it is present in the record, still a <geonet:child name=“hierarchyLevel” prefix=“gmd” …> is added to the metadocument below it.

I think this is a bug in the creation of metadocument for ISO19139, as far as gmd:hierarchyLevel is concerned (I didn’t test for all elements in the schema so don’t know if any other element has has similar bug).
Can anyone confirm this bug (if it is not, shed some light on it)? If it is, does it needs a bug report filed?

Thanks and Regards
Ameet

2013/10/25 Ameet Chaudhari <ameet.chaudhari@anonymised.com>

Hi,

In another thread titled "what is the effect of the selection
geonet:child[...]", I came to know about the geonet:child elements being
added to metadocument according to the schema definition.

With further study, I observed that they are added only if the
corresponding element is missing from the record. for e.g. if <gmd:title>
is missing from record, a <geonet:child name="title" prefix="gmd" .... > is
added to metadocument but if it is present in the record, geonet:child for
it is not added.

I think it depends on the cardinality of the element. gmd:title cardinality
is 1..1 so you don't need to advertise the geonet:child when gmd:title is
already set - no new element of this kind could be added.

Cheers.

Francois

But for <gmd:hierarchyLevel>, even if it is present in the record, still a
<geonet:child name="hierarchyLevel" prefix="gmd" ...> is added to the
metadocument below it.

I think this is a bug in the creation of metadocument for ISO19139, as far
as <gmd:hierarchyLevel> is concerned (I didn't test for all elements in the
schema so don't know if any other element has has similar bug).
Can anyone confirm this bug (if it is not, shed some light on it)? If it
is, does it needs a bug report filed?

Thanks and Regards
Ameet

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork