Revision 60994
Added by Konstantina Galouni almost 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/services/searchDataproviders.service.ts | ||
---|---|---|
390 | 390 |
let relation = Array.isArray(resData['rels']['rel']) ? resData['rels']['rel'][i] : resData['rels']['rel']; |
391 | 391 |
|
392 | 392 |
if(relation.hasOwnProperty("to")) { |
393 |
if(relation['to'].class == "provides" && relation['to'].type == "organization") {
|
|
393 |
if(relation['to'].class == "isProvidedBy" && relation['to'].type == "organization") {
|
|
394 | 394 |
if(getOrganizations) { |
395 | 395 |
let item: {"name":string, "id":string} = {"name": "", "id": ""}; |
396 | 396 |
//item['name'] = relation.legalname; |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/dataProvider/dataProvider.service.ts | ||
---|---|---|
219 | 219 |
for(let i=0; i<length; i++) { |
220 | 220 |
mydata = data[5].length!=undefined ? data[5][i] : data[5]; |
221 | 221 |
if(mydata.hasOwnProperty("to")) { |
222 |
if(mydata['to'].class == "provides" && mydata['to'].type == "organization") {
|
|
222 |
if(mydata['to'].class == "isProvidedBy" && mydata['to'].type == "organization") {
|
|
223 | 223 |
//if(this.dataProviderInfo.organizations == undefined) { |
224 | 224 |
if(this.dataProviderInfo.organizations.length == 0) { |
225 | 225 |
//this.dataProviderInfo.organizations = new Array<{"name": string, "url": string}>(); |
Also available in: Unified diff
[Trunk | Library]: dataProvider.service.ts & searchDataproviders.service.ts:
[Bug fix] #6678 ticket - In order to get "organizations related to a datasource" (at most one), parse rels.rel.to.class "isProvidedBy" (instead of rels.rel.to.class "provides").