From d43118f7b8c17836bc44c0dfda47752c65b5c7ac Mon Sep 17 00:00:00 2001 From: Sarah Hilse Date: Wed, 27 Sep 2023 16:23:58 +0200 Subject: [PATCH] feat: map license on rights if there is no value for rights given. --- ckanext/dcatapchharvest/profiles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ckanext/dcatapchharvest/profiles.py b/ckanext/dcatapchharvest/profiles.py index 189cb3d..67d2ef7 100644 --- a/ckanext/dcatapchharvest/profiles.py +++ b/ckanext/dcatapchharvest/profiles.py @@ -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