diff --git a/src/app/pages/data-catalogue/dataset/dataset.component.html b/src/app/pages/data-catalogue/dataset/dataset.component.html index b6aa1b6d6b4e1b89677fba45631e86296f8a67d7..87671bc5cb3e74bc066b7234f62ddb0268628483 100644 --- a/src/app/pages/data-catalogue/dataset/dataset.component.html +++ b/src/app/pages/data-catalogue/dataset/dataset.component.html @@ -73,7 +73,12 @@ <span *ngIf="licenses!=undefined && licenses.length>0" class="d-flex flex-column mb-2"> <label class="label">Licenses:</label> - <p class="truncated" *ngFor="let l of licenses"><a [href]="l.uri">{{l.name}}</a></p> + <p class="truncated" *ngFor="let l of licenses"><a [href]="l.uri">{{l.name}}</a> + <nb-tag size="small" nbTooltip="JLA - Licences Compatibility Checker" appearance="outline" status="info" (click)="openLicence()" + text="Check Licence Compatibility"> + </nb-tag> + </p> + </span> <span *ngIf="dataset.releaseDate!='' && showDate(dataset.releaseDate)" class="d-flex flex-column mb-2"> diff --git a/src/app/pages/data-catalogue/dataset/dataset.component.ts b/src/app/pages/data-catalogue/dataset/dataset.component.ts index fdf4136e0b0d894baf67e58f678c350c2715a601..76920d416ddada5e40d5e799b5c678a06188a39c 100644 --- a/src/app/pages/data-catalogue/dataset/dataset.component.ts +++ b/src/app/pages/data-catalogue/dataset/dataset.component.ts @@ -213,4 +213,7 @@ export class DatasetComponent implements OnInit { }); } + openLicence() { + window.open("https://joinup.ec.europa.eu/collection/eupl/solution/joinup-licensing-assistant/jla-compatibility-checker", "_blank"); + } }