Introduction
This is the wiki page for formatting and editing the standard geonetwork installation to a working Deltares installation such as: http://marineproject.openearth.nl/geonetwork/srv/eng/search#fast=index&from=1&to=50
Assumes using stable branch of geonetwork found here: http://sourceforge.net/projects/geonetwork/files/GeoNetwork_opensource/v2.10.3/
Prerequisites
Adding background map
The normal Geonetwork installation assumes a geoserver installation at localhost. For Deltares this is not the case and therefore the default background layers in the search map and overview map won't show.
Edit the file at WEB-INF/config-gui.xml
Find the section with <!-- Configuration for small map search and add a layer to <layers> section:
<layer server="http://ows.terrestris.de/osm-gray/service?" tocname="OSM" params="{layers: 'OSM-WMS', format: 'image/png'}" options="{isBaseLayer: true}" />
We can use the Terrestris gray Open Street Map service, but any WMS provider will do. You can comment out the other layers if they're not working. Commenting in html is <!-- Comment -->
Do the same for the section starting with <!-- Configuration for map viewer and add a server section for reference:
<server name="Terrestris" url="http://ows.terrestris.de/osm-gray/service?" />
Save and close the file and restart geonetwork.
Switching to the HTML5 GUI.
For nationaalgeoregister.nl a new interface has been developed, which has found its way to the geonetwork source. See: https://github.com/geonetwork/core-geonetwork/pull/81
Documentation found at: http://geonetwork-opensource.org/manuals/trunk/eng/developer/userinterface/html5ui/index.html
Edit the file at WEB-INF/config-gui.xml
Comment out the second working line like this:
<!-- <client type="redirect" widget="false" url="main.home" />-->
And add the following:
<client type="redirect" widget="true" url="../../srv/eng/search" createParameter="#create" stateId="s" />
After a tomcat service restart the new GUI will load at the default /geoserver link.
Fixing a WFS harvest bug
There is a bug in geonetwork that has been solved upstream of the stable version. See: https://github.com/geonetwork/core-geonetwork/pull/349
It causes the html5 gui to hang when viewing WFS harvested metadata, or show a broken extent in the standard interface. The fix is simple.
Edit WEB-INF/data/config/schema_plugins/iso19139/convert/OGCWxSGetCapabilitiesto19119/identification.xsl and find the two instances where there is a copy-of value while three similar rows after it have a value-of value.
<westBoundLongitude>
<gco:Decimal><xsl:value-of select="math:min(exslt:node-set($boxes)/*[name(.)='xmin'])"/></gco:Decimal>
</westBoundLongitude>
Save the file and restart the tomcat service.