Skip to content

use conditionapplyingtoaccessanduse to populate oa-records:rights#1078

Merged
tomkralidis merged 2 commits intogeopython:masterfrom
pvgenuchten:oarec-rights-update
Mar 9, 2025
Merged

use conditionapplyingtoaccessanduse to populate oa-records:rights#1078
tomkralidis merged 2 commits intogeopython:masterfrom
pvgenuchten:oarec-rights-update

Conversation

@pvgenuchten
Copy link
Copy Markdown
Contributor

Overview

uselimitation is used in hnap (amongst others) to represent dc:rights, this field is captured in conditionapplyingtoaccessanduse
use that field to populate the rights property in oa-records
also map the dc:rights to this property
(i'm unsure about the queryable mapping gmd:accessconstraints-dc:rights)

Related Issue / Discussion

suggestion for #1077

Additional Information

Contributions and Licensing

(as per https://github.com/geopython/pycsw/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pycsw. I confirm that my contributions to pycsw will be compatible with the pycsw license guidelines at the time of contribution.
  • I have already previously agreed to the pycsw Contributions and Licensing Guidelines

_set(context, recobj, 'pycsw:Publisher', md.publisher)
_set(context, recobj, 'pycsw:Contributor', md.contributor)
_set(context, recobj, 'pycsw:OrganizationName', md.rightsholder)
if len(md.rights) > 0 and None not in md.rights:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    if md.rights is not None and len(md.rights) > 0:
        _set(context, recobj, 'pycsw:ConditionApplyingToAccessAndUse', ','.join(md.rights))

@pvgenuchten pvgenuchten force-pushed the oarec-rights-update branch from 6392d21 to 0964485 Compare March 8, 2025 21:12
@pvgenuchten pvgenuchten requested a review from tomkralidis March 8, 2025 21:13
@pvgenuchten
Copy link
Copy Markdown
Contributor Author

applied comment, rebased to master

@tomkralidis tomkralidis merged commit 0e77846 into geopython:master Mar 9, 2025
3 checks passed
@pvgenuchten pvgenuchten deleted the oarec-rights-update branch March 10, 2025 10:23
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