[angular-16-irish-monitor | DONE | CHANGED ] fetchByDOIs: add filter query to the request

This commit is contained in:
argirok 2023-11-28 11:04:04 +02:00
parent 6f214cb08a
commit 550c27a464
1 changed files with 2 additions and 5 deletions

View File

@ -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")]));
}