diff --git a/landingPages/project/project.service.ts b/landingPages/project/project.service.ts index 1e112238..45e0ccdd 100644 --- a/landingPages/project/project.service.ts +++ b/landingPages/project/project.service.ts @@ -245,8 +245,13 @@ export class ProjectService { } if (this.projectInfo.funding && this.projectInfo.funding.funderShortName == "EC") { - this.projectInfo.url = properties.cordisURL + this.projectInfo.funding.code; - this.projectInfo.urlInfo = "Detailed project information (CORDIS)"; + if(this.projectInfo.funding.fundingStream && this.projectInfo.funding.fundingStream.includes("ERASMUS+")) { + this.projectInfo.url = properties.erasmusURL + this.projectInfo.funding.code; + this.projectInfo.urlInfo = "Detailed project information (ERASMUS+)"; + } else { + this.projectInfo.url = properties.cordisURL + this.projectInfo.funding.code; + this.projectInfo.urlInfo = "Detailed project information (CORDIS)"; + } } if (data[0]?.measure) { diff --git a/utils/properties/env-properties.ts b/utils/properties/env-properties.ts index 877fdeb1..af63c8b2 100644 --- a/utils/properties/env-properties.ts +++ b/utils/properties/env-properties.ts @@ -43,6 +43,7 @@ export interface EnvProperties { pmcURL?: string; pmidURL?: string; handleURL?: string; + erasmusURL?: string; cordisURL?: string; openDoarURL?: string; r3DataURL?: string; diff --git a/utils/properties/environments/environment.ts b/utils/properties/environments/environment.ts index 423052d4..cd8e28cf 100644 --- a/utils/properties/environments/environment.ts +++ b/utils/properties/environments/environment.ts @@ -16,6 +16,7 @@ export let common: EnvProperties = { pmcURL: "http://europepmc.org/articles/", pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/", handleURL: "http://hdl.handle.net/", + erasmusURL: "https://erasmus-plus.ec.europa.eu/it/projects/search/details/", cordisURL: "http://cordis.europa.eu/projects/", openDoarURL: "http://v2.sherpa.ac.uk/id/repository/", r3DataURL: "http://service.re3data.org/repository/", @@ -103,11 +104,11 @@ export let commonDev: EnvProperties = { statisticsFrameAPIURL: "https://beta.openaire.eu/stats/", statisticsFrameNewAPIURL: "https://beta.services.openaire.eu/stats-tool/", claimsAPIURL: "http://dl170.madgik.di.uoa.gr:19780/uoa-claims-service/claimsService/", - searchAPIURLLAst: "http://beta.services.openaire.eu/search/v2/api/", - searchResourcesAPIURL: "https://beta.services.openaire.eu/search/v2/api/resources", + searchAPIURLLAst: "http://services.openaire.eu/search/v2/api/", + searchResourcesAPIURL: "https://services.openaire.eu/search/v2/api/resources", openCitationsAPIURL: "https://services.openaire.eu/opencitations/getCitations?id=", - csvAPIURL: "https://beta.services.openaire.eu/search/v2/api/reports", + csvAPIURL: "https://services.openaire.eu/search/v2/api/reports", orcidAPIURL: "http://dl170.madgik.di.uoa.gr:19480/uoa-orcid-service/", orcidTokenURL: "https://sandbox.orcid.org/oauth/authorize?", orcidClientId: "APP-A5M3KTX6NCN67L91",