From 065d73bb3eb787e48a33112451dd4441de9d1658 Mon Sep 17 00:00:00 2001 From: argirok Date: Thu, 26 Oct 2023 09:48:11 +0300 Subject: [PATCH 1/2] [angular-16-community-projects-availableSince | DONE | UPDATE] : add method to get last date that db is loaded --- utils/indexInfo.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/indexInfo.service.ts b/utils/indexInfo.service.ts index 0835e04f..1570a7e2 100644 --- a/utils/indexInfo.service.ts +++ b/utils/indexInfo.service.ts @@ -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 { + 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)})); + } } -- 2.17.1 From fcc130b530a506f856986bdd80322b8c11b43636 Mon Sep 17 00:00:00 2001 From: argirok Date: Thu, 26 Oct 2023 16:29:05 +0300 Subject: [PATCH 2/2] [angular-16-community-projects-availableSince | DONE | UPDATE] : don't show router link and result actions (for the community projects case where the id is set to '-1') --- utils/result-preview/result-preview.component.html | 4 ++-- utils/result-preview/result-preview.component.ts | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/result-preview/result-preview.component.html b/utils/result-preview/result-preview.component.html index cec5a36c..53415d44 100644 --- a/utils/result-preview/result-preview.component.html +++ b/utils/result-preview/result-preview.component.html @@ -23,7 +23,7 @@