+ *ngIf="statsClicked &&
+ (fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE
+ || fetchSoftware.searchUtils.status == errorCodes.DONE || fetchOrps.searchUtils.status == errorCodes.DONE)">
Produced research results per year
diff --git a/services/searchDataproviders.service.ts b/services/searchDataproviders.service.ts
index dfded792..afa4c090 100644
--- a/services/searchDataproviders.service.ts
+++ b/services/searchDataproviders.service.ts
@@ -401,6 +401,9 @@ export class SearchDataprovidersService {
} else {
item['name'] = relation.legalname;
}
+ if(!item['name']) {
+ item['name'] = "[no title available]";
+ }
item['id'] = /*OpenaireProperties.getsearchLinkToOrganization()+*/relation['to'].content;
organizations.push(item);
}
diff --git a/services/searchProjects.service.ts b/services/searchProjects.service.ts
index 223f4fce..4999b25c 100644
--- a/services/searchProjects.service.ts
+++ b/services/searchProjects.service.ts
@@ -190,6 +190,9 @@ export class SearchProjectsService {
} else {
result['organizations'][countOrganizations]['name'] = relation.legalname;
}
+ if(!result['organizations'][countOrganizations]['name']) {
+ result['organizations'][countOrganizations]['name'] = "[no title available]";
+ }
}
}
}
diff --git a/utils/entities/dataProviderInfo.ts b/utils/entities/dataProviderInfo.ts
index 91b947b0..5b6f66c0 100644
--- a/utils/entities/dataProviderInfo.ts
+++ b/utils/entities/dataProviderInfo.ts
@@ -163,7 +163,7 @@ export class DataProviderInfo {
])
};
- organizations: {"name": string, "id": string}[] = [];
+ organizations: {"acronym": string, "name": string, "id": string}[] = [];
//publications: any;
//datasets: any;
statistics: any;
diff --git a/utils/result-preview/result-preview.component.html b/utils/result-preview/result-preview.component.html
index a6b7bba7..a51b0f66 100644
--- a/utils/result-preview/result-preview.component.html
+++ b/utils/result-preview/result-preview.component.html
@@ -217,7 +217,7 @@
Organization:
{{organization.name}}
- ,
+ ,
10">...
@@ -243,9 +243,10 @@
0"
class="uk-text-small uk-margin-small-bottom">
Subject:
- {{subject}}
- {{(i < (result.subjects.slice(0, 10).length - 1)) ? ", " : ""}}
- {{(i == result.subjects.slice(0, 10).length - 1 && result.subjects.length > 10) ? "..." : ""}}
+
+ {{subject}}
+ {{(i < (result.subjects.slice(0, 10).length - 1)) ? ", " : ""}}
+ {{(i == result.subjects.slice(0, 10).length - 1 && result.subjects.length > 10) ? "..." : ""}}