diff --git a/landingPages/dataProvider/dataProvider.component.ts b/landingPages/dataProvider/dataProvider.component.ts index 2b4d1290..97b20b4b 100644 --- a/landingPages/dataProvider/dataProvider.component.ts +++ b/landingPages/dataProvider/dataProvider.component.ts @@ -396,6 +396,7 @@ export class DataProviderComponent { this.seoService.createLinkForCanonicalURL(this.properties.domain +this.properties.baseLink + this._router.url); if (typeof document !== 'undefined') { this.getDataProviderAggregationStatus(this.dataProviderInfo.originalId); + // this.getCollectedFulltexts(); this.countResultsWithFundingInfo(); } else { this.aggregationStatusIsInitialized = true; @@ -470,6 +471,20 @@ export class DataProviderComponent { )); } + // private getCollectedFulltexts() { + // this.subscriptions.push(this._dataproviderService.getCollectedFulltexts(this.datasourceId).subscribe( + // (data: string) => { + // this.dataProviderInfo.aggregationStatus = {"fulltexts": data}; + // this.aggregationStatusIsInitialized = true; + // }, + // err => { + // //console.log(err); + // this.aggregationStatusIsInitialized = true; + // this.handleError("Error getting "+this.getTypeName()+" collected fulltexts for id: " + this.datasourceId, err); + // } + // )); + // } + private countResultsWithFundingInfo() { this.subscriptions.push(this._searchResearchResultsService.countCollectedResultsWithFundingInfo(this.datasourceId).subscribe( fundedContent => { diff --git a/landingPages/dataProvider/dataProvider.service.ts b/landingPages/dataProvider/dataProvider.service.ts index eaaa6409..49d3e911 100644 --- a/landingPages/dataProvider/dataProvider.service.ts +++ b/landingPages/dataProvider/dataProvider.service.ts @@ -83,6 +83,11 @@ export class DataProviderService { .pipe(map(res => this.parseDataproviderAggregationStatus(res))); } + // getCollectedFulltexts(datasourceId: string) { + // return this.http.get(properties.pdfStatisticsAPIURL+"/api/stats/getNumberOfPayloadsForDatasource?datasourceId="+datasourceId) + // .pipe(map(res => res)) + // } + private handleError (error: HttpErrorResponse) { // in a real world app, we may send the error to some remote logging infrastructure // instead of just logging it to the console