Gemini 2.3 Metadata Profile
Use the correct branch for your version of GeoNetwork. The default branch is for GeoNetwork 3.10 and this is the recommended version.
- Download or clone this repository, ensuring you choose the correct branch.
- Copy
src/main/plugin/iso19139.gemini23
toINSTALL_DIR/geonetwork/WEB_INF/data/config/schema_plugins/iso19139.gemini23
in your installation. - Copy
target/schema-iso19139.gemini23-3.7.jar
toINSTALL_DIR/geonetwork/WEB_INF/lib
- Restart GeoNetwork
- Check that the schema is registered by visiting Admin Console -> Metadata and Templates -> Standards in GeoNetwork. If you do not see iso19139.gemini23 then it is not correctly deployed. Check your GeoNetwork log files for errors.
The best approach is to add the plugin as a submodule. Use https://github.com/geonetwork/core-geonetwork/blob/3.8.x/add-schema.sh for automatic deployment:
.\add-schema.sh iso19139.gemini23 http://github.com/metadata101/iso19139.gemini23 3.8.x
- Download and extract https://github.com/AstunTechnology/geonetwork-pr4039-pr3569/blob/master/geonetwork_38x_310x_patches.zip and overwrite the
xslt
andWEB_INF
folders with the ones from the zip file. - Download or clone this repository, ensuring you choose the correct branch. Copy
src/main/plugin/iso19139.gemini23
toINSTALL_DIR/geonetwork/WEB_INF/data/config/schema_plugins/iso19139.gemini23
in your installation and restart GeoNetwork - Check that the schema is registered by visiting Admin Console -> Metadata and Templates -> Standards in GeoNetwork. If you do not see iso19139.gemini23 then it is not correctly deployed. Check your GeoNetwork log files for errors.
The best approach is to add the plugin as a submodule. Use https://github.com/geonetwork/core-geonetwork/blob/3.8.x/add-schema.sh for automatic deployment:
.\add-schema.sh iso19139.gemini23 http://github.com/metadata101/iso19139.gemini23 3.8.x
Note: Check whether geonetwork/core-geonetwork#3569 has been merged into the 3.10.x branch. If not, it is necessary to manually include the affected files as below, either by adding the PR manually or adding the files from the zip before building the application
If pr/3569 is unmerged, then follow this process to manually include it:
- Configure your local copy of the repository so you can check-out unmerged pull requests locally. See https://gist.github.com/piscisaureus/3342247 for instructions
- Cherry-pick the commit for pr/3569- if there are conflicts, manually resolve them
- If requested,
git stash
changes such as to pom.xml so you can re-apply them afterwards withgit stash pop
- You may also need to make a change to
schemas/iso19115-3.2018/src\main/plugin/iso19115-3.2018/layout/layout.xsl
- overwrite line 393 with:
<xsl:copy-of select="gn-fn-metadata:getFieldDirective($editorConfig, name(), name($theElement), $xpath)"/>
Download and extract https://github.com/AstunTechnology/geonetwork-pr4039-pr3569/blob/master/geonetwork_38x_310x_patches.zip
- Copy the contents of
WEB_INF/data/config/schema_plugins/
intoschemas
- Copy
xslt
intoweb/src/main/webapp/
Once the application is built web/target/geonetwork.war
will contain GeoNetwork with the Gemini 2.3 schema plugin included.