Once GeoNetwork is up and running, you have to perform some other steps using the web interface.
Login as admin / admin.
Click on the “admin admin (Administrator)” link, then click on “Reset password”. Change and annotate the new password.
Click on Admin console > Settings.
Check if the right values are set in these fields:
You then may want to:
Create a contact for the CSW GetCapabilities. This can be done creating a new user: Admin console > Users and Groups > Manage users > New User
Then you have to select such user as the contact for CSW: Admin console > Settings > Tab CSW > Contact. Select the user you just created as CSW PoC.
Admin console > Settings > Tab Logo.
You have to upload your logo, and then select it as the main picture for your site.
Admin console > Metadata and templates.
Select the standards you want to import in your catalog (at least ISO19139), and then press the button “Load templates”.
If you need also sample data, load sample as well. You won’t want these sample data in a production catalog.
Admin console > Metadata and templates > Tab Schematron
Click on “INSPIRE Validation Rules” and change the dropdown value from “Ignore this group [...]” to “Require to be valid” (or “Only report errors”, according to your needs).
Repeat for “Inspire strict rules extension”.
Hint
Official documentation for the INSPIRE setup is at
Admin console > Classification systems > Add thesaurus
Select the “From URL” entry from the choice.
Set this address in the URL field:
https://raw.githubusercontent.com/geonetwork/util-gemet/master/thesauri/inspire-theme.rdf
And select “Theme” in the dropdown menu.
Once uploaded, you should have the new entry “GEMET - INSPIRE themes, version 1.0 (theme)”.
If you are using a version >= 3.2.1, the INSPIRE view should be automatically enabled when you check the INSPIRE option in the Settings menu.
For previous versions, you have to enable the INSPIRE view by editing the file
gn/data/config/schema_plugins/iso19139/layout/config-editor.xml
Hint
If you did not externalize your data directory, you have to edit the file at
webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/layout/config-editor.xml
and removing the disabled attribute in these lines:
<!-- View configuration -->
<views>
<!--Turn off INSPIRE view by default -->
<view name="inspire" upAndDownControlHidden="true" disabled="true">
<tab id="inspire" default="true" mode="flat">
In order to set the INSPIRE view as the default one,
Admin console > Settings.
Edit the field “Configuration par standard” in the “metadata” section.
The string
"iso19139":{"defaultTab":"default"
should be changed into
"iso19139":{"defaultTab":"inspire"
In file webapps/geonetwork/catalog/style/gn_search.less look for the lines
@import (less) "inspire/iti.css";
// Import this CSS to have INSPIRE themes translations
//@import (less) "inspire/iti-i18n.css";
and remove the comment from the import.
GeoNetwork is configured to output the logs both on console and on file.
You’ll find the console output redirected into the file logs/catalina.out. The configured output log file, which contains some different information, is set to logs/geonetwork.logs. The base dir is set wherever the starting process place it, but starting tomcat with systemd will probably set a read-only location. This means that you may need to set manually the location of the log file.
You have to enter the directory
cd /var/lib/tomcat/geonetwork/webapps/geonetwork/WEB-INF/classes/
and edit the files:
replacing the line
<param name="File" value="logs/geonetwork.log" />
with
<param name="File" value="/var/lib/tomcat/geonetwork/logs/geonetwork.log" />
Please note that GeoNetwork loads the log4j configuration file according to the setting in Admin console > Settings > section Catalog server > Log level.