Changes between Version 2 and Version 3 of proposals/GeoNetworkDataDir


Ignore:
Timestamp:
Mar 12, 2012, 3:14:53 AM (12 years ago)
Author:
fxp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • proposals/GeoNetworkDataDir

    v2 v3  
    1111== Overview ==
    1212
    13 The GeoNetwork data directory is the location on the file system where GeoNetwork stores all of its custom configuration. This configuration defines such things as: What thesaurus is used by GeoNetwork? What schema is plugged in GeoNetwork?. The data directory also contains a number of support files used by GeoNetwork for various purposes (eg. Lucene index, spatial index, logos).
     13The !GeoNetwork data directory is the location on the file system where !GeoNetwork stores all of its custom configuration. This configuration defines such things as: What thesaurus is used by !GeoNetwork? What schema is plugged in !GeoNetwork?. The data directory also contains a number of support files used by !GeoNetwork for various purposes (eg. Lucene index, spatial index, logos).
    1414
    1515It is a good idea to define an external data directory when going to production in order to make upgrade easier.
     
    3333== Proposal ==
    3434
     35=== Creating a new data directory ===
     36
     37The data directory needs to be created before starting the catalogue. It must be readable and writable by the user starting the catalogue.
     38If the data directory is an empty folder, the catalogue will initialized the directory default structure.
     39The easiest way to create a new data directory is to copy one that comes with a standards installation.
     40
     41=== Setting the data directory ===
     42
     43The data directory variable could be set using:
     44 * <webappName>.dir and if not set using:
     45 * geonetwork.dir
     46
     47Depending on the servlet container used it is also possible to specify the data directory location with a Java System Property.
     48
     49For Tomcat, configuration is:
     50{{{
     51CATALINA_OPTS="-Dgeonetwork.dir=/var/lib/geonetwork_data"
     52}}}
    3553
    3654=== Structure of the data directory ===
     
    5775=== Backwards Compatibility Issues ===
    5876
     77Main changes of the proposal:
     78 * config.xml appHandler properties for directory are removed
     79 * Schema plugin URI catalogue is divided into 2 files:
     80  * WEB-INF/schema-uri-catalog.xml which contains URI catalogue for core schemas (ie. those under xml/schemas/*). URI are relative to XSL files (eg. ../xml/schemas/iso19115/present/metadata-iso19115.xsl).
     81  * <geonetwork.dir>/config/schemaplugin-uri-catalog.xml which contains URI catalogue for plugged schemas. URI are absolute path to XSL files (eg. /var/lib/geonetwork_data/schema_plugins/iso19139.fra/present/metadata-iso19139.fra.xsl).
     82 * z3950.Repositories (JZKitConfig.xml) is build in config directory.
     83 * !LogoFilter is renamed to !ResourceFilter and provide access to the following filter:
     84  * images/logos
     85  * images/harvesting
     86  * images/statTmp
     87  * htmlcache
     88 * htmlCacheDir is moved to <geonetwork.dir>/resources/htmlcache and published using the ResourceFilter (like logos)
     89
     90
    5991== Risks ==
    6092