ckan / ckanext-spatial

Geospatial extension for CKAN
http://docs.ckan.org/projects/ckanext-spatial
126 stars 193 forks source link

Handle MI_Metadata from CSW record XML #210

Open benjwadams opened 5 years ago

benjwadams commented 5 years ago

Handles MI_Metadata elements returned from CSW XML records, rather than returning None and causing an error later. Raises an exception when neither MD_Metadata nor MI_Metadata are found. Also sets encoding argument to 'unicode' rather than unicode (type), so that Python 3 does not break.

amercader commented 5 years ago

This looks good. I'll wait until the tests are fixed on master to double check is not breaking anything and I'll merge it.