Skip to content

Handle MI_Metadata from CSW record XML#210

Open
benjwadams wants to merge 1 commit intockan:masterfrom
benjwadams:csw_md_fix
Open

Handle MI_Metadata from CSW record XML#210
benjwadams wants to merge 1 commit intockan:masterfrom
benjwadams:csw_md_fix

Conversation

@benjwadams
Copy link

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.

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
Copy link
Member

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.

ccancellieri added a commit to ccancellieri/ckanext-spatial that referenced this pull request Oct 22, 2021
…mespace and tag name so we can now harvest any kind of metadata (if validation is provided or ignored) ckan#209 ckan#210 ckan#219 ckan#258
ccancellieri added a commit to ccancellieri/ckanext-spatial that referenced this pull request Oct 22, 2021
…mespace and tag name so we can now harvest any kind of metadata (if validation is provided or ignored) ckan#209 ckan#210 ckan#219 ckan#258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants