From 550c27a4643cefd0c3665ae04cdc7d9261bb87aa Mon Sep 17 00:00:00 2001 From: argirok Date: Tue, 28 Nov 2023 11:04:04 +0200 Subject: [PATCH] [angular-16-irish-monitor | DONE | CHANGED ] fetchByDOIs: add filter query to the request --- services/searchResearchResults.service.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/services/searchResearchResults.service.ts b/services/searchResearchResults.service.ts index cddf7c92..02a12fc3 100644 --- a/services/searchResearchResults.service.ts +++ b/services/searchResearchResults.service.ts @@ -587,11 +587,8 @@ export class SearchResearchResultsService { return this.http.get((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url) .pipe(map(res => res['meta']['total'])); } - fetchByDOIs(DOIs:string[]): any { - let url = properties.searchAPIURLLAst + "/researchProducts/byDoi?type=publications"; - - - + fetchByDOIs(DOIs:string[],query:string): any { + let url = properties.searchAPIURLLAst + "/researchProducts/byDoi?type=publications" + (query?query:""); return this.http.post(url, {doiArray: DOIs}) .pipe(map(res => [res['meta'].total, this.parseResults("result", res['results'], properties), RefineResultsUtils.parse(res['refineResults'], null, "publication")])); }