[develop | DONE | REVERTED]: searchProjects.service.ts: Revert parsing funder name if funder shortname is not available.
This commit is contained in:
parent
c219c8370b
commit
4b3e805d31
|
@ -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']:"";
|
||||
|
||||
|
|
Loading…
Reference in New Issue