Open radochudy opened 11 months ago
@tomkralidis I found error in code https://github.com/geopython/pycsw/blob/027fe70c186988d3ddb44f03f855a5d79548bad0/pycsw/core/metadata.py#L1352 . There is bad definition of condition if hasattr(md.identification, 'dataquality'): ... dataquality is not part of md.identification and condition should be defined if hasattr(md, 'dataquality')...
Also following part of code from line 1356 is bad.
` if hasattr(md.dataquality, 'specificationdate'): _set(context, recobj, 'pycsw:specificationDate', md.dataquality.specificationdate[0].date) _set(context, recobj, 'pycsw:SpecificationDateType', md.dataquality.specificationdate[0].datetype)
`
specificationdate doesn't have attributes date and datetype defined in owslib iso parser. It is also necessary change definition of specificationdate in owslib iso parser
Description
Values of Dataquality sections (lineage, specificationtitle..) of metadata are not saved into database. For repository is used PostgrelSQL. We use it in production enviroment https://rpi.gov.sk/en as well as I made test in my local env. I made a check of parser ISO.py from owslib and it works OK. Thanks a lot.
Environment : production / dev
operating system: Ubuntu 22
Python version: prod env 3.8/ local env 3.10
pycsw version: tested 2.6.1 / 3.0
source/distribution
web server
Steps to Reproduce
Try to load to pycsw this record and check specificationtitle in the database. testxml.zip
Additional Information