Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Values of Dataquality sections of metadata are not saved into database #923

Open
2 tasks
radochudy opened this issue Dec 4, 2023 · 1 comment · May be fixed by #1080
Open
2 tasks

Values of Dataquality sections of metadata are not saved into database #923

radochudy opened this issue Dec 4, 2023 · 1 comment · May be fixed by #1080
Assignees
Labels
Milestone

Comments

@radochudy
Copy link

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

    • git clone
  • web server

    • Apache/mod_wsgi

Steps to Reproduce

Try to load to pycsw this record and check specificationtitle in the database.
testxml.zip

Additional Information

@radochudy
Copy link
Author

@tomkralidis I found error in code

if hasattr(md.identification, 'dataquality'):
. 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

@tomkralidis tomkralidis self-assigned this Jul 26, 2024
@tomkralidis tomkralidis added this to the 3.0.0 milestone Jul 26, 2024
@pvgenuchten pvgenuchten self-assigned this Feb 10, 2025
pvgenuchten added a commit to pvgenuchten/pycsw that referenced this issue Feb 10, 2025
@pvgenuchten pvgenuchten linked a pull request Feb 10, 2025 that will close this issue
2 tasks
pvgenuchten added a commit to pvgenuchten/pycsw that referenced this issue Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants