[geotk] Metadata Marshelling question

Guilhem guilhem.legal at geomatys.fr
Thu Oct 25 03:34:01 PDT 2012


Hi François,
We know about this issue for a long time (we have a JIRA task on a 
sub-project asking for this tag).
I ran some tests and found a way to add it :

patch the file : 
modules/metadata/geotk-metadata-fra/src/main/java/org/geotoolkit/metadata/fra/FRA_DataIdentification.java

by adding :

@XmlAttribute(name = "isoType", namespace= Namespaces.GCO)
public QName getIsoType() {
       return new QName(Namespaces.GMD, "MD_DataIdentification");
}


I think we'll add this tag for all sub-classes of FRA profile in the 
geotk trunk soon.

Guilhem Legal



Le 18/10/2012 17:54, François ANDRE a écrit :
> Hi all,
>
> I'd like to insert a custom tag during the marshalling of my metadata 
> for Geonetwork to be able to autodetect it and liking it to a special 
> schema plugin.
>
> For example, I'd like to be able to add my tag after 
> "gmd:identificationInfo" just like it's done with ISO19139.FRA :
>
> <gmd:identificationInfo>
>
>     <fra:FRA_DataIdentification gco:isoType="gmd:MD_DataIdentification">
>     ...
>
> I've tried several things but none have worked: when I marshall my 
> metadata I only see the gmd:IdentificationInfo tag.
>
> Is there a way to do that or is it such a bad idea ?
>
> Sincerly,
>
> François ANDRE
>
>
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20121025/02408669/attachment.html>


More information about the Geotoolkit mailing list