A plugin which enables the creation, editing and cataloguing of metadata that uses the GeoViQua 4.0 schema, within a standard GeoNetwork v2.8.0 installation.
Download the latest zip archive of the metadata schema plugin and upload it through the GeoNetwork administration interface. It is crucial that the plugin name given is iso19139.geoviqua.
To install the schema plugin manually, the zip archive must be extracted to GeoNetwork's schema directory (by default this is INSTALL_DIR/web/geonetwork/WEB-INF/data/config/schema_plugins
) and into a folder named iso19139.geoviqua.
Alternatively, you could clone the repo directly via Git:
cd INSTALL_DIR/web/geonetwork/WEB-INF/data/config/schema_plugins
git clone https://github.com/GeoViQua/geoviqua-geonetwork-plugin.git -b 2.8.x-dev iso19139.geoviqua
After installing the schema plugin, some additional configuration is required so that the plugin functions optimally. Please follow the steps below.
GeoNetwork's system configuration must be updated to enable the XLink Resolver so elements that use xlinks are displayed correctly when viewing metadata.
Please reference the GeoNetwork user documentation on how to update the system configuration, ensuring that the checkbox under XLink Resolver is ticked and that the configuration is then saved.
Additional metadata conversion services must be exposed so that, at a minimum, users can download GeoViQua metadata records directly from the GeoNetwork catalog as XML. schema-conversions.xml
lists the available converters provided by this plugin.
To enable the export of GeoViQua documents, edit INSTALL_DIR/web/geonetwork/WEB-INF/config-export.xml
to register the xml_geoviqua converter:
<geonet>
<services package="org.fao.geonet">
...
<service name="xml_geoviqua">
<class name=".services.metadata.Convert" />
<error id="operation-not-allowed" sheet="error-embedded.xsl" statusCode="403">
<xml name="error" file="xml/privileges-error.xml" />
</error>
</service>
...
</services>
</geonet>
Then edit INSTALL_DIR/web/geonetwork/WEB-INF/user-profiles.xml
to enable user groups to use the xml_geoviqua converter:
<profiles>
...
<profile name="Guest">
...
<!-- Metadata export services -->
<allow service="xml_geoviqua"/>
...
</profile>
...
</profiles>
Once these changes to both files have been made, restart GeoNetwork.
Users will then have the option to export GeoViQua documents as XML when viewing search results or individual metadata records, providing their user group has publish privileges enabled for the metadata record in question. For anonymous users and web services, the publish privilege should be enabled for the "All" group.