From e981bfd89da0227583ba88b65bba5cdfd2f8228a Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Wed, 2 May 2018 12:57:48 +0000 Subject: [PATCH] new API for ORCID- update properties git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@51904 d315682c-612b-4755-9ff5-7f18f6832af3 --- portal-4cli-lib/explore-production-properties.json | 2 +- portal-4cli-lib/src/app/app.component.ts | 5 ++++- portal-4cli-lib/src/assets/env-properties.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/portal-4cli-lib/explore-production-properties.json b/portal-4cli-lib/explore-production-properties.json index f6442771..331de6d9 100644 --- a/portal-4cli-lib/explore-production-properties.json +++ b/portal-4cli-lib/explore-production-properties.json @@ -12,7 +12,7 @@ "csvAPIURL" : "https://beta.services.openaire.eu/search/v2/api/reports", "searchCrossrefAPIURL" : "https://api.crossref.org/works", "searchDataciteAPIURL" : "https://api.datacite.org/works", - "searchOrcidURL" : "https://pub.orcid.org/", + "searchOrcidURL" : "https://pub.orcid.org/v2.1/", "pmidURL" : "http://www.ncbi.nlm.nih.gov/pubmed/", "doiURL" : "https://dx.doi.org/", "cordisURL" : "http://cordis.europa.eu/projects/", diff --git a/portal-4cli-lib/src/app/app.component.ts b/portal-4cli-lib/src/app/app.component.ts index f861b946..88a3b551 100644 --- a/portal-4cli-lib/src/app/app.component.ts +++ b/portal-4cli-lib/src/app/app.component.ts @@ -79,10 +79,13 @@ export class AppComponent { } ngOnInit() { - + if (typeof document !== 'undefined') { try{ this.isClient = true; + if(Session.isPortalAdministrator()){ + this.userMenuItems.push(new MenuItem("","Administration","https://beta.admin.connect.openaire.eu/dashboard?communityId=openaire","",true,[],[],{})) + } }catch (e) { } diff --git a/portal-4cli-lib/src/assets/env-properties.json b/portal-4cli-lib/src/assets/env-properties.json index 2212041b..f7462849 100644 --- a/portal-4cli-lib/src/assets/env-properties.json +++ b/portal-4cli-lib/src/assets/env-properties.json @@ -12,7 +12,7 @@ "csvAPIURL" : "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/reports", "searchCrossrefAPIURL" : "https://api.crossref.org/works", "searchDataciteAPIURL" : "https://api.datacite.org/works", - "searchOrcidURL" : "https://pub.orcid.org/", + "searchOrcidURL" : "https://pub.orcid.org/v2.1/", "pmidURL" : "http://www.ncbi.nlm.nih.gov/pubmed/", "doiURL" : "https://dx.doi.org/", "cordisURL" : "http://cordis.europa.eu/projects/",