[develop | DONE | CHANGED]: explore-assets/funders/logos: Renamed all funder logos by using only their shortnames | funders.component.ts: For static logos, split funder id and get only their shortname, to get the static logo - Special characters where causing problems in pulling the project in Windows environment.

This commit is contained in:
Konstantina Galouni 2024-01-12 14:02:37 +02:00
parent 5b86f1a4d1
commit 9ca57b8f4d
14 changed files with 3 additions and 1 deletions

View File

@ -220,7 +220,9 @@ export class FundersComponent implements OnInit {
value.openAccessPercentage = Math.round((value.openAccessResearchProducts / value.researchProducts) * 100); value.openAccessPercentage = Math.round((value.openAccessResearchProducts / value.researchProducts) * 100);
} }
if(!value.logoUrl && this.staticLogos.has(value.id)) { if(!value.logoUrl && this.staticLogos.has(value.id)) {
value.logoUrl = "assets/explore-assets/funders/logos/"+value.id+".png"; let split = value.id.split("||");
let shortname = (split && split.length==3) ? value.id.split("||")[2] : value.id;
value.logoUrl = "assets/explore-assets/funders/logos/"+shortname+".png";
} }
}); });
// convert funders map into an array // convert funders map into an array