APISO unused issue¶
We have a Geonetwork 2.10.4 with only one dataset (we made it invalid):
While harvesting c.testbed from a Geonetwork 3.1.x-develop instance, we run inotifywait -rm /var/lib/tomcat8/webapps/gdi-de > ~/delete.txt to check which files are read. (You can also do this with Geonetwork 2.10.4 and tomcat7.)
Result: No apiso.xsd is read. Instead it uses srv.xsd directly.
... /var/lib/tomcat8/webapps/gdi-de/WEB-INF/data/config/schema_plugins/iso19139/schema/srv/ OPEN srv.xsd /var/lib/tomcat8/webapps/gdi-de/WEB-INF/data/config/schema_plugins/iso19139/schema/srv/ ACCESS srv.xsd /var/lib/tomcat8/webapps/gdi-de/WEB-INF/data/config/schema_plugins/iso19139/schema/srv/ CLOSE_NOWRITE,CLOSE srv.xsd ...
For a full log see line 229 in
we thought a dataset has to be validated with apiso.xsd/gmd.xsd and not with srv.xsd?
The solution for us is to add the following mapping to the file oasis-catalog.xml
<system systemId="http://schemas.opengis.net/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd" uri="/var/lib/tomcat8/webapps/gdi-de/xml/validation/csw202_apiso100/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd"/>
Now the local file apiso.xsd is read. So we can edit it and add:
<xs:import namespace="http://www.isotc211.org/2005/gmx" schemaLocation="../../../../../iso/19139/20060504/gmx/gmx.xsd"/>