Project

General

Profile

« Previous | Next » 

Revision 53366

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

View differences:

dataProvider.service.ts
54 54
    }
55 55

  
56 56
    parseDataproviderAggregationStatus(data: any): any {
57
        var aggregationStatus: {"fundedContent": string, "indexRecords": string} = null;
57
        var aggregationStatus: {"fundedContent": string, "indexRecords": string, "fulltexts": string} = null;
58 58
        if(data != null && data[0] != null) {
59
          aggregationStatus = {"fundedContent": "-1", "indexRecords": "-1"};
59
          aggregationStatus = {"fundedContent": "-1", "indexRecords": "-1", "fulltexts": "-1"};
60 60
          aggregationStatus.fundedContent = data[0].fundedContent;
61 61
          aggregationStatus.indexRecords = data[0].indexRecords;
62
          aggregationStatus.fulltexts = data[0].fulltexts;
62 63
        }
63 64
        return aggregationStatus;
64 65
    }

Also available in: Unified diff