Geonode-RNDT is a Django App to let GeoNode be able to expose the metadata compliant to the RNDT standard
Detailed information on the definition of RNDT are available at this link
-
Install the application as requirement:
pip install -e git+https://github.com/geosolutions-it/geonode-rndt@master#egg=rndt -
Add "rndt" to your
INSTALLED_APPS settinglike this::INSTALLED_APPS = [ 'rndt', ... ]If you have a
local_settingfile, you may want to add therndtapp with these lines:INSTALLED_APPS += ('rndt',) -
Run
python manage.py migrateto migrate pre-5.0 RNDT models into SparseFields.
If you are installing this app for the first time in GeoNode >= 5.0, you can skip the real migrations and apply fake migrations with the following command:python manage.py migrate --fake rndt -
To enable the
UUIDHandler, add the following line in thegeonode.settings.pyfile:LAYER_UUID_HANDLER = "rndt.uuidhandler.UUIDHandler" -
To customize the metadata document to be RNDT compliant, use the rndt template:
CATALOG_METADATA_TEMPLATE = 'xml/template-rndt.xml' -
To customize the XSL transformation to be aligned to the RNDT metadata format, use the provided XSL file:
CATALOG_METADATA_XSL = '/static/rndt/rndt-metadata.xsl' -
Load thesauri Load the needed thesauri, either from the Thesaurus admin page or using the
thesaurus loadcommand.
You can find them in therndt/thesauri/directory.
- INSPIRE/RNDT thesauri
3-2-4-1_gemet-inspire-themes.rdf3-2-4-2_PriorityDataset.rdf3-2-4-3_SpatialScope.rdf3-2-4-5_rndt-all1-fixed.rdf("Registro dei dati di interesse generale per il RNDT")4-1-2-1_SpatialDataServiceCategory_RNDT-fixed.rdf
- Codelists for INSPIRE/RNDT metadata fields:
ConditionsApplyingToAccessAndUse.rdfLimitationsOnPublicAccess.rdf
- Localization entries for the RNDT custom metadata fields:
labels-i18n.rndt.rdf
To uninstall the app, remove all the rndt functionalities (INSTALLED_APPS and context_processors) from settings.py and restart the server.
If needed made an hard refresh to let the browser reload the js/css/html files (windows: CTRL+ SHIFT+R | Mac: CMD+SHIFT+R)
