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

feat: map license on rights if there is no value for rights given. #81

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ckanext/dcatapchharvest/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,10 @@ def parse_dataset(self, dataset_dict, dataset_ref): # noqa
license = self._license_rights_name(distribution, DCT.license)
if rights is None and license is not None:
resource_dict['license'] = license
resource_dict['rights'] = license
if rights is not None and license is None:
resource_dict['license'] = rights
resource_dict['rights'] = rights
if license is not None and rights is not None:
resource_dict['license'] = license
resource_dict['rights'] = rights
Expand Down