Dataprovider Landing page: Parse 'fulltexts' field returned from Datasource API - 'Aggregation Status' and show it as 'Collected full-texts'.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@53366 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2018-10-02 10:42:14 +00:00
parent b0193ef255
commit d29adff837
3 changed files with 7 additions and 6 deletions

View File

@ -41,11 +41,11 @@
</span>
<ul class="uk-list">
<li *ngIf="dataProviderInfo.aggregationStatus && dataProviderInfo.aggregationStatus.fundedContent != -1"><span class="uk-text-bold">Results with funding information: </span>
<li *ngIf="dataProviderInfo.aggregationStatus && dataProviderInfo.aggregationStatus.fundedContent && dataProviderInfo.aggregationStatus.fundedContent != -1"><span class="uk-text-bold">Results with funding information: </span>
{{dataProviderInfo.aggregationStatus.fundedContent | number}}
</li>
<li *ngIf="dataProviderInfo.aggregationStatus && dataProviderInfo.aggregationStatus.indexRecords != -1"><span class="uk-text-bold">Collected full-texts: </span>
{{dataProviderInfo.aggregationStatus.indexRecords | number}}
<li *ngIf="dataProviderInfo.aggregationStatus && dataProviderInfo.aggregationStatus.fulltexts && dataProviderInfo.aggregationStatus.fulltexts != -1"><span class="uk-text-bold">Collected full-texts: </span>
{{dataProviderInfo.aggregationStatus.fulltexts | number}}
</li>
<li *ngIf="dataProviderInfo.oaiPmhURL"><span class="uk-text-bold">OAI-PMH: </span>
<span class="uk-button-text">

View File

@ -54,11 +54,12 @@ export class DataProviderService {
}
parseDataproviderAggregationStatus(data: any): any {
var aggregationStatus: {"fundedContent": string, "indexRecords": string} = null;
var aggregationStatus: {"fundedContent": string, "indexRecords": string, "fulltexts": string} = null;
if(data != null && data[0] != null) {
aggregationStatus = {"fundedContent": "-1", "indexRecords": "-1"};
aggregationStatus = {"fundedContent": "-1", "indexRecords": "-1", "fulltexts": "-1"};
aggregationStatus.fundedContent = data[0].fundedContent;
aggregationStatus.indexRecords = data[0].indexRecords;
aggregationStatus.fulltexts = data[0].fulltexts;
}
return aggregationStatus;
}

View File

@ -10,7 +10,7 @@ export class DataProviderInfo {
originalId: string;
countries: string[];
aggregationStatus: {"fundedContent": string, "indexRecords": string}; //collected from datasource api
aggregationStatus: {"fundedContent": string, "indexRecords": string, "fulltexts": string}; //collected from datasource api
tabs: {"name": string, "content": string}[];
tabs2: string[] =[];