[develop | DONE | CHANGED]: #9526 - env-properties.ts & environment.ts: Added property "erasmusURL" | project.service.ts: Set project info url to ERASMUS+ (not CORDIS) when funding stream is ERASMUS+.

This commit is contained in:
Konstantina Galouni 2024-12-02 14:49:37 +02:00
parent 503ab40616
commit b81609b265
3 changed files with 12 additions and 5 deletions

View File

@ -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) {

View File

@ -43,6 +43,7 @@ export interface EnvProperties {
pmcURL?: string;
pmidURL?: string;
handleURL?: string;
erasmusURL?: string;
cordisURL?: string;
openDoarURL?: string;
r3DataURL?: string;

View File

@ -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",