From d400a6ce3ccee3c43b840d11a4c55b411996b795 Mon Sep 17 00:00:00 2001 From: Awang Date: Fri, 13 Aug 2021 00:42:26 +0700 Subject: [PATCH] [SUPDESQ-19] - updated license_id (#199) * [SUPDESQ-19] - updated license_id * [SUPDESQ-19] - removed backward compatibility for publishing --- ckanext/qdes_schema/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ckanext/qdes_schema/helpers.py b/ckanext/qdes_schema/helpers.py index 925d784e..b9914448 100644 --- a/ckanext/qdes_schema/helpers.py +++ b/ckanext/qdes_schema/helpers.py @@ -520,9 +520,9 @@ def map_update_schedule(uri, schema): def map_license(uri, schema): license_map = { constants.PUBLISH_EXTERNAL_IDENTIFIER_DATA_QLD_SCHEMA: { - 'https://linked.data.gov.au/def/licence-document/cc-by-4.0': 'cc-by-4', - 'https://linked.data.gov.au/def/licence-document/cc-by-nd-4.0': 'cc-by-nd-4', - 'https://linked.data.gov.au/def/licence-document/cc-by-sa-4.0': 'cc-by-sa-4' + 'https://linked.data.gov.au/def/qld-data-licenses/cc-by-4.0': 'cc-by-4', + 'https://linked.data.gov.au/def/qld-data-licenses/cc-by-nd-4.0': 'cc-by-nd-4', + 'https://linked.data.gov.au/def/qld-data-licenses/cc-by-sa-4.0': 'cc-by-sa-4' }, # @todo, in case needed, need to map this against external schema in future. constants.PUBLISH_EXTERNAL_IDENTIFIER_QSPATIAL_SCHEMA: {},