diff --git a/services/searchResearchResults.service.ts b/services/searchResearchResults.service.ts index f42394cb..b09e18b1 100644 --- a/services/searchResearchResults.service.ts +++ b/services/searchResearchResults.service.ts @@ -370,6 +370,11 @@ export class SearchResearchResultsService { } return this.numOfResults(url, properties); } + numOfSearchResultsLinkedToPub(resultType:string, properties:EnvProperties):any { + let url = properties.searchAPIURLLAst+"resources?query="+encodeURIComponent("( (oaftype exact result) and (resulttypeid exact "+resultType+") and (relresulttype=publication) )")+"&page=0&size=0&format=json"; + return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url) + .pipe(map(res => res['meta']['total'])); + } countTotalResults(resultType:string, properties:EnvProperties, refineParams:string=null):any { let url = properties.searchAPIURLLAst+this.getEntityName(resultType, true)+"/count?format=json"+refineParams;