Skip to content

Commit

Permalink
fix: Certificate generation for custom built system (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk authored Aug 2, 2023
1 parent b321609 commit 1d1937a
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@ class CertificationWriter {

get awardedTo() {
if (this.datasetJson) {
return this.datasetJson.bookingService || this.datasetJson.publisher && {
return this.datasetJson.bookingService?.name ? {
'@type': 'Organization',
name: this.datasetJson.bookingService.name,
url: this.datasetJson.bookingService.url,
softwareVersion: this.datasetJson.bookingService.softwareVersion,
} : (this.datasetJson.publisher && {
'@type': 'Organization',
name: this.datasetJson.publisher.name,
url: this.datasetJson.publisher.url,
};
});
}
return {};
}
Expand Down

0 comments on commit 1d1937a

Please sign in to comment.