Project

General

Profile

« Previous | Next » 

Revision 60994

[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").

View differences:

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;

Also available in: Unified diff