|
PYCSW = { |
|
# pycsw configuration |
|
"CONFIGURATION": { |
|
# uncomment / adjust to override server config system defaults |
|
# 'server': { |
|
# 'maxrecords': '10', |
|
# 'pretty_print': 'true', |
|
# 'federatedcatalogues': 'http://catalog.data.gov/csw' |
|
# }, |
|
"server": { |
|
"home": ".", |
|
"url": CATALOGUE["default"]["URL"], |
|
"encoding": "UTF-8", |
|
"language": LANGUAGE_CODE if LANGUAGE_CODE in ("en", "fr", "el") else "en", |
|
"maxrecords": "20", |
|
"pretty_print": "true", |
|
# 'domainquerytype': 'range', |
|
"domaincounts": "true", |
|
"profiles": "apiso,ebrim", |
|
}, |
|
"manager": { |
|
# authentication/authorization is handled by Django |
|
"transactions": "false", |
|
"allowed_ips": "*", |
|
# 'csw_harvest_pagesize': '10', |
|
}, |
|
"metadata": { |
|
"inspire": { |
|
"enabled": True, |
|
"languages_supported": ["eng", "gre"], |
|
"default_language": "eng", |
|
"date": "YYYY-MM-DD", |
|
"gemet_keywords": ["Utility and governmental services"], |
|
"conformity_service": "notEvaluated", |
|
"contact_name": "Organization Name", |
|
"contact_email": "Email Address", |
|
"temp_extent": { |
|
"begin": "YYYY-MM-DD", |
|
"end": "YYYY-MM-DD", |
|
}, |
|
}, |
|
"identification": { |
|
"title": "GeoNode Catalogue", |
|
"description": "GeoNode is an open source platform" |
|
" that facilitates the creation, sharing, and collaborative use" |
|
" of geospatial data", |
|
"keywords": ["sdi", "catalogue", "discovery", "metadata", "GeoNode"], |
|
"keywords_type": "theme", |
|
"fees": "None", |
|
"accessconstraints": "None", |
|
}, |
|
"provider": { |
|
"name": "Organization Name", |
|
"url": SITEURL, |
|
}, |
|
"contact": { |
|
"name": "Lastname, Firstname", |
|
"position": "Position Title", |
|
"address": "Mailing Address", |
|
"city": "City", |
|
"stateorprovince": "Administrative Area", |
|
"postalcode": "Zip or Postal Code", |
|
"country": "Country", |
|
"phone": "+xx-xxx-xxx-xxxx", |
|
"fax": "+xx-xxx-xxx-xxxx", |
|
"email": "Email Address", |
|
"url": "Contact URL", |
|
"hours": "Hours of Service", |
|
"instructions": "During hours of service. Off on " "weekends.", |
|
"role": "pointOfContact", |
|
}, |
|
}, |
|
} |
|
} |
Expected Behavior
Geonode's embedded PyCSW should accept changes in server behaviour, on modify PCSW setting:
geonode/geonode/settings.py
Lines 1207 to 1280 in a7950ec
Actual Behavior
When trying to add support for ISO 119115-3 for CSW requests, the geonode's embedded pycsw does't reflect changed made in PYCSW setting. This behaviour is observed even in a simple contact change
Steps to Reproduce the Problem
PYCSW["CONFIGURATION"]["server"]["profiles"] = "apiso,iso19115p3"http://localhost:8000/catalogue/csw?service=CSW&version=2.0.2&request=GetCapabilitiesSpecifications
CONFIGURATIONandPYCSW["CONFIGURATION"], because the first argument indict()should be the default, defined ingeonode.catalogue.backends.pycsw_local. Look this code below, as an example:geonode/geonode/catalogue/views.py
Line 49 in a7950ec