diff --git a/src/atlasComponents/regionalFeatures/bsFeatures/receptor/entry/entry.component.ts b/src/atlasComponents/regionalFeatures/bsFeatures/receptor/entry/entry.component.ts index 24b35a96d9c5b07ea67de8d1c89e6086ae2f0972..c7ddc98b3dfe499c26525c889e85133b591a95a3 100644 --- a/src/atlasComponents/regionalFeatures/bsFeatures/receptor/entry/entry.component.ts +++ b/src/atlasComponents/regionalFeatures/bsFeatures/receptor/entry/entry.component.ts @@ -5,6 +5,7 @@ import { BsRegionInputBase } from "../../bsRegionInputBase"; import { REGISTERED_FEATURE_INJECT_DATA } from "../../constants"; import { BsFeatureService, TFeatureCmpInput } from "../../service"; import { TBSDetail } from "../type"; +import { ARIA_LABELS } from 'common/constants' @Component({ selector: 'bs-features-receptor-entry', @@ -17,6 +18,7 @@ import { TBSDetail } from "../type"; export class BsFeatureReceptorEntry extends BsRegionInputBase implements OnDestroy{ private sub: Subscription[] = [] + public ARIA_LABELS = ARIA_LABELS private selectedREntryId$ = new Subject<string>() private _selectedREntryId: string diff --git a/src/atlasComponents/regionalFeatures/bsFeatures/receptor/entry/entry.template.html b/src/atlasComponents/regionalFeatures/bsFeatures/receptor/entry/entry.template.html index 399d6178a9cfe8289cc35ef059d2cf853f843efa..3343e8006df1952cabd3582a1d645750728d70ae 100644 --- a/src/atlasComponents/regionalFeatures/bsFeatures/receptor/entry/entry.template.html +++ b/src/atlasComponents/regionalFeatures/bsFeatures/receptor/entry/entry.template.html @@ -8,6 +8,26 @@ <ng-container *ngIf="selectedReceptor$ | async as selectedRec"> + <h3 class="mat-h3"> + <span> + {{ selectedRec.name }} + </span> + </h3> + + <ng-container *ngFor="let info of (selectedRec.origin_datainfos || [])"> + <a *ngFor="let url of (info.urls || [])" + mat-icon-button + color="primary" + [href]="url.doi | doiParserPipe" + target="_blank" + [matTooltip]="ARIA_LABELS.EXPLORE_DATASET_IN_KG" + [attr.aria-label]="ARIA_LABELS.EXPLORE_DATASET_IN_KG"> + <i class="fas fa-external-link-alt"></i> + </a> + </ng-container> + + <mat-divider class="m-2"></mat-divider> + <bs-features-receptor-fingerprint (onSelectReceptor)="onSelectReceptor($event)" [bsFeature]="selectedRec"> diff --git a/src/atlasComponents/regionalFeatures/bsFeatures/receptor/type.ts b/src/atlasComponents/regionalFeatures/bsFeatures/receptor/type.ts index 4fccfe85caf38951e0e1121769d5bf17962cc582..db91d6912cd8717897c639012537d14b7601f631 100644 --- a/src/atlasComponents/regionalFeatures/bsFeatures/receptor/type.ts +++ b/src/atlasComponents/regionalFeatures/bsFeatures/receptor/type.ts @@ -32,7 +32,6 @@ export type TBSSummary = { origin_datainfos?: ({ name: string description: string - } | { urls: { doi: string cite?: string