geopython / pycsw

pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web]. Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X). Please read the docs at https://pycsw.org/docs for more information.
https://pycsw.org
MIT License
206 stars 155 forks source link

iso import fails if no keywords #928

Open pvgenuchten opened 10 months ago

pvgenuchten commented 10 months ago

Description

  File "/home/pycsw/pycsw/pycsw/core/metadata.py", line 1429, in _parse_iso
    _set(context, recobj, 'pycsw:Keywords', ','.join([k.name for k in all_keywords]))
TypeError: sequence item 0: expected str instance, NoneType found
Could not parse "/builds/7sRQ5izy/cec.xml" as an XML record
tomkralidis commented 2 months ago

@pvgenuchten can you post an example ISO document so I can reproduce?