[develop | DONE | REVERTED]: searchProjects.service.ts: Revert parsing funder name if funder shortname is not available.

This commit is contained in:
Konstantina Galouni 2024-04-16 11:36:45 +03:00
parent c219c8370b
commit 4b3e805d31
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ export class SearchProjectsService {
for(let z=0; z<fundingLength; z++) {
let fundingData = Array.isArray(resData['fundingtree']) ? resData['fundingtree'][z] : resData['fundingtree'];
if(fundingData.hasOwnProperty("funder")) {
result['funderShortname'] = fundingData['funder'].shortname ? fundingData['funder'].shortname : fundingData['funder'].name;
result['funderShortname'] = fundingData['funder'].shortname;
result['funderId'] = fundingData['funder'].id;
result['jurisdiction'] = (fundingData['funder']['id']['jurisdiction'] )?fundingData['funder']['id']['jurisdiction']:"";