| 35 | === Creating a new data directory === |
| 36 | |
| 37 | The data directory needs to be created before starting the catalogue. It must be readable and writable by the user starting the catalogue. |
| 38 | If the data directory is an empty folder, the catalogue will initialized the directory default structure. |
| 39 | The 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 | |
| 43 | The data directory variable could be set using: |
| 44 | * <webappName>.dir and if not set using: |
| 45 | * geonetwork.dir |
| 46 | |
| 47 | Depending on the servlet container used it is also possible to specify the data directory location with a Java System Property. |
| 48 | |
| 49 | For Tomcat, configuration is: |
| 50 | {{{ |
| 51 | CATALINA_OPTS="-Dgeonetwork.dir=/var/lib/geonetwork_data" |
| 52 | }}} |
| 77 | Main 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 | |