Revision 61321
Added by Konstantina Galouni almost 3 years ago
searchResearchResults.service.ts | ||
---|---|---|
538 | 538 |
return entityType; |
539 | 539 |
} |
540 | 540 |
} |
541 |
|
|
542 |
public countCollectedResultsWithFundingInfo(datasourceId: string) { |
|
543 |
let url = properties.searchAPIURLLAst + "resources?query=" + encodeURIComponent("(oaftype=result and collectedfromdatasourceid exact \""+datasourceId+"\" and relprojectid=*)") + "&page=0&size=0&format=json"; |
|
544 |
return this.http.get((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url) |
|
545 |
.pipe(map(res => res['meta']['total'])); |
|
546 |
} |
|
541 | 547 |
} |
Also available in: Unified diff
[Branch angular-11 | Library]:
1. dataProviderInfo.ts: Added field "fundedContent" and updated "aggregationStatus: {"fulltexts": string};".
2. searchResearchResults.service.ts: Added method "countCollectedResultsWithFundingInfo()" to get number of research outcomes related to any project and collected from specific datasoure.
3. dataProvider.service.ts: Updated methods "getDataproviderAggregationStatus()" and "parseDataproviderAggregationStatus()" to parse "fulltexts" (new GET API call used).
4. dataProvider.component.ts: Added method "countResultsWithFundingInfo()" and updated method "hasAggregationStatusInfo()".
5. dataProvider.component.html: Deleted info "Latest data aggregation" and show "dataProviderInfo.fundedContent" instead of "dataProviderInfo.aggregationStatus.fundedContent".