[GeoNetwork-devel] autodetecschema

Hello Simon and all,
I made an update on the autodetect schema mechanism to handle ISO profil not having a specific root element (eg. profil for France start with a gmd:MD_Metadata, only sub elements are profil specific).

So instead of having comparison with primeNS (targetNamespace declared in schema.xsd) we could also compare primeNS to root element namespace and all additional namespaces define the schema of a metadata record. This approach will work for all kind of ISO profils. There will still have a small issue if a profil specific namespace is only declared on sub elements and not on root (usually not the case, but could still be valid).

Making those changes, we created a preferred schema parameter for the catalogue. For example GéoSource prefer iso19139.fra and will import, harvest this first … and GeoNetwork prefer pure iso19139. Then import user interface is easier because we could remove the schema selection and user doesn’t have to take care about schemas.

See :
http://n2.nabble.com/SF.net-SVN%3A-geonetwork%3A-2565–sandbox-GeoSource-GeoNetwork-src-org-fao–geonet-kernel-DataManager.java-td2502999.html#a2502999

Cheers.
Francois