diff --git a/landingPages/dataProvider/dataProvider.component.html b/landingPages/dataProvider/dataProvider.component.html
index 9d01aaea..a15edde9 100644
--- a/landingPages/dataProvider/dataProvider.component.html
+++ b/landingPages/dataProvider/dataProvider.component.html
@@ -53,6 +53,8 @@
{{dataProviderInfo.compatibility.name}}
{{" "}}
+ 0"
+ class="uk-label custom-label label-type label-dataprovider ">OpenAIRE Text Mining{{" "}}
Collected full-texts:
{{dataProviderInfo.aggregationStatus.fulltexts | number}}
+ -
+ Last update of records in OpenAIRE:
+ {{dataProviderInfo.aggregationStatus.lastUpdateDate | date}}
+
- OAI-PMH:
diff --git a/landingPages/dataProvider/dataProvider.service.ts b/landingPages/dataProvider/dataProvider.service.ts
index d14c8e1d..1449f126 100644
--- a/landingPages/dataProvider/dataProvider.service.ts
+++ b/landingPages/dataProvider/dataProvider.service.ts
@@ -62,12 +62,24 @@ export class DataProviderService {
}
parseDataproviderAggregationStatus(data: any): any {
- var aggregationStatus: {"fundedContent": string, "indexRecords": string, "fulltexts": string} = null;
+ var aggregationStatus: {"fundedContent": string, "indexRecords": string, "fulltexts": string, "lastUpdateDate": string} = null;
if(data != null && data[0] != null) {
- aggregationStatus = {"fundedContent": "-1", "indexRecords": "-1", "fulltexts": "-1"};
+ aggregationStatus = {"fundedContent": "-1", "indexRecords": "-1", "fulltexts": "-1", "lastUpdateDate": null};
aggregationStatus.fundedContent = data[0].fundedContent;
aggregationStatus.indexRecords = data[0].indexRecords;
aggregationStatus.fulltexts = data[0].fulltexts;
+
+ if(data[0].hasOwnProperty("aggregationHistory")) {
+ let length = Array.isArray(data[0]["aggregationHistory"]) ? data[0]["aggregationHistory"].length : 1;
+
+ for(let i=0; i