Skip to content

Commit 485ed4c

Browse files
committed
IOT-1477: Move ODDK license-link from the datatarget-'root', into distribution-section, in the ODDK sharing-endpoint..
1 parent 5cd1e4e commit 485ed4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/entities/dto/open-data-dk-dcat.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class Distribution {
1616
"@type": string;
1717
title?: string;
1818
format: string;
19+
license: string;
1920
mediaType: string;
2021
accessURL: string;
2122
}
@@ -24,7 +25,6 @@ export class Dataset {
2425
@Expose({ name: "@type" })
2526
"@type": string;
2627
identifier: string;
27-
license: string;
2828
landingPage: string;
2929
title: string;
3030
description: string;

src/services/data-management/open-data-dk-sharing.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ export class OpenDataDkSharingService {
149149
ds.accessLevel = "public";
150150

151151
ds.identifier = this.generateUrl(organization, dataset);
152-
ds.license = dataset.license;
153152
ds.landingPage = undefined;
154153
ds.title = dataset.name;
155154
ds.description = dataset.description;
@@ -174,6 +173,7 @@ export class OpenDataDkSharingService {
174173
distribution["@type"] = "dcat:Distribution";
175174
distribution.mediaType = "application/json";
176175
distribution.format = "JSON";
176+
distribution.license = dataset.license;
177177

178178
distribution.accessURL = this.generateUrl(organization, dataset);
179179
distribution.title = dataset.resourceTitle;

0 commit comments

Comments
 (0)