[develop | DONE | CHANGED]: #9764 - searchOrganizations.service.ts: Parse and display organization legalname and legalshortname.
This commit is contained in:
parent
8bcafd3026
commit
2a28cd8ad5
|
@ -100,13 +100,16 @@ export class SearchOrganizationsService {
|
||||||
|
|
||||||
result['title'] = {"name": '', "accessMode": ''};
|
result['title'] = {"name": '', "accessMode": ''};
|
||||||
|
|
||||||
if(resData.legalshortname) {
|
if(resData.legalname) {
|
||||||
result['title'].name = StringUtils.HTMLToString(String(resData.legalshortname));
|
|
||||||
}
|
|
||||||
if(!result['title'].name || result['title'].name == '') {
|
|
||||||
result['title'].name = StringUtils.HTMLToString(String(resData.legalname));
|
result['title'].name = StringUtils.HTMLToString(String(resData.legalname));
|
||||||
|
} else {
|
||||||
|
result['title'].name = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(resData.legalshortname) {
|
||||||
|
result['acronym'] = StringUtils.HTMLToString(String(resData.legalshortname));
|
||||||
|
}
|
||||||
|
|
||||||
//result['title'].url = OpenaireProperties.getsearchLinkToOrganization();
|
//result['title'].url = OpenaireProperties.getsearchLinkToOrganization();
|
||||||
//result['title'].url += Array.isArray(data) ? data[i]['result']['header']['dri:objIdentifier'] : data['result']['header']['dri:objIdentifier'];
|
//result['title'].url += Array.isArray(data) ? data[i]['result']['header']['dri:objIdentifier'] : data['result']['header']['dri:objIdentifier'];
|
||||||
result['id'] = Array.isArray(data) ? data[i]['result']['header']['dri:objIdentifier'] : data['result']['header']['dri:objIdentifier'];
|
result['id'] = Array.isArray(data) ? data[i]['result']['header']['dri:objIdentifier'] : data['result']['header']['dri:objIdentifier'];
|
||||||
|
|
Loading…
Reference in New Issue