Production release November 2023 #20

Merged
argiro.kokogiannaki merged 75 commits from develop into master 2023-11-07 09:48:32 +01:00
3 changed files with 11 additions and 2 deletions
Showing only changes of commit 64e8919925 - Show all commits

View File

@ -25,6 +25,10 @@ export class IndexInfoService {
let url = properties.indexInfoAPI;
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)): url).pipe(map(res => res['orcid_update_date'])).pipe(catchError(err => {return of(null)}));
}
getDBLoadLastDate(properties: EnvProperties): Observable<any> {
let url = properties.indexInfoAPI;
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)): url).pipe(map(res => res['db_load_date'])).pipe(catchError(err => {return of(null)}));
}
}

View File

@ -23,7 +23,7 @@
<div class="multi-line-ellipsis lines-3 uk-width-expand">
<h2 class="uk-margin-remove uk-text-break uk-inline-block uk-h6">
<a *ngIf="!externalUrl && result.id" (click)="onClick()" [queryParams]="addEoscPrevInParams(createParam())"
[routerLink]="url" class="uk-link uk-text-decoration-none uk-width-expand">
[routerLink]="url" class="uk-link uk-text-decoration-none uk-width-expand" [class.uk-disabled]="result.id == '-1'">
<div *ngIf="(result.title) || result.acronym">
<span *ngIf="result.acronym">
{{result.acronym}}
@ -180,7 +180,7 @@
<div *ngIf="result.hostedBy_collectedFrom?.length" class="uk-width-auto uk-visible@m">
<availableOn [availableOn]="result.hostedBy_collectedFrom"></availableOn>
</div>
<div *ngIf="hasActions" class="uk-width-expand uk-visible@m">
<div *ngIf="hasActions && result.id" class="uk-width-expand uk-visible@m">
<entity-actions [cite]="cite" [share]="share" [linking]="linking"
[deposit]="deposit" [embed]="embed"
[type]="result.resultType"

View File

@ -79,6 +79,11 @@ export class ResultPreviewComponent implements OnInit, OnChanges {
this.urlParam = "grantId";
}
this.url = properties.searchLinkToProject.split('?')[0];
if(this.result.id == "-1"){
//community projetcs - not yet loaded in the graph
this.url = null;
this.result.id = null;
}
this.projectActions();
} else if (this.result.resultType == "organization") {
this.urlParam = "organizationId";