This is the GEMINI 2.2 schema plugin for GeoNetwork 3.4.x or later. Switch to the appropriate branch in this repository for versions that work with Geonetwork 3.0 and 3.2.
Use GeoNetwork 3.4.0+. This will not work in earlier versions of the software.
Add the plugin as a submodule into the GeoNetwork schema module:
cd schemas
git submodule add -b 3.4.x https://github.com/AstunTechnology/iso19139.gemini22_GN3 iso19139.gemini22
Add the new module to the schema/pom.xml:
<module>iso19139</module>
<module>iso19139.gemini22</module>
</modules>
Add the dependency in the web module in web/pom.xml:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>schema-iso19139.gemini22</artifactId>
<version>${project.version}</version>
</dependency>
Add the module to the webapp in web/pom.xml:
<execution>
<id>copy-schemas</id>
<phase>process-resources</phase>
...
<resource>
<directory>${project.basedir}/../schemas/iso19139.gemini22/src/main/plugin</directory>
<targetPath>${basedir}/src/main/webapp/WEB-INF/data/config/schema_plugins</targetPath>
</resource>
Once the application is built, the war file contains the schema plugin:
$ mvn clean install -Penv-prod
After building the application, it's possible to deploy the schema plugin manually in an existing GeoNetwork installation:
-
Copy the content of the folder schemas/iso19139.gemini22/src/main/plugin to INSTALL_DIR/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.gemini22
-
Copy the jar file schemas/iso19139.gemini22/target/schema-iso19139.gemini22-3.2.1-SNAPSHOT.jar to INSTALL_DIR/geonetwork/WEB-INF/lib.
If there's no changes to the profile Java code or the configuration (config-spring-geonetwork.xml), the jar file is not required to be deployed each time.
In Geonetwork 3.4.x the display of the validation panel has been removed from the settings panel to the config-editor for the schema. This enables you to enable or disable the validation panel on a per-schema, per-view basis. In this repository the panel has been enabled in both default and advanced view. To disable it in a particular view in layout/config-editor.xml, comment out the sidepanel directive, which looks like the code below.
<sidePanel>
<directive data-gn-onlinesrc-list=""/>
<directive gn-geo-publisher=""
data-ng-if="gnCurrentEdit.geoPublisherConfig"
data-config="{{gnCurrentEdit.geoPublisherConfig}}"
data-lang="lang"/>
<directive data-gn-validation-report=""/>
<directive data-gn-suggestion-list=""/>
<directive data-gn-need-help="user-guide/describing-information/creating-metadata.html"/>
</sidePanel>