[Library | develop]: fos.component.ts: [Bug fix] when on eosc explore, link of fos subjects to search page is external.

This commit is contained in:
Konstantina Galouni 2023-09-04 14:38:51 +03:00
parent 37208d82b6
commit fc2c58e3b9
1 changed files with 6 additions and 2 deletions

View File

@ -31,10 +31,14 @@ import {StringUtils} from "../../utils/string-utils.class";
</div>
<div class="uk-margin-small-top">
<div *ngFor="let subject of subjects.slice(0, viewAll?subjects.length:threshold); let i=index" class="uk-text-truncate">
<a [routerLink]="properties.searchLinkToResults"
[queryParams]="buildFosQueryParam(subject)">
<a *ngIf="properties.adminToolsPortalType != 'eosc'"
[routerLink]="properties.searchLinkToResults" [queryParams]="buildFosQueryParam(subject)">
{{subject.label}}
</a>
<a *ngIf="properties.adminToolsPortalType == 'eosc'" class="custom-external" target="_blank"
[href]="'https://explore.openaire.eu'+properties.searchLinkToResults+'?fos='+urlEncodeAndQuote(subject.label)">
{{subject.label}}
</a>
</div>
</div>
</div>