You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

  • Geonetwork 2.10.3
  • Access to the geonetwork folder (/var/lib/tomcatx/webapps/geonetwork) as tomcat user (warning)
  • Rights to restart tomcat service (sudo) (warning)
  • At ease with editing on the command line
  • At ease with xml

 

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.

 

 



 

  • No labels