Revision 58416
Added by Argiro Kokogiannaki about 4 years ago
searchProjects.service.ts | ||
---|---|---|
288 | 288 |
} |
289 | 289 |
return this.numOfProjects(url, properties); |
290 | 290 |
} |
291 |
numOfSearchProjects2(params: string, properties:EnvProperties, refineParams:string=null ):any { |
|
292 |
let url = properties.searchAPIURLLAst+"resources2/?format=json&size=0&type=projects"; |
|
293 |
if(params != "") { |
|
294 |
url += "&query=" + params; |
|
295 |
} |
|
296 |
if(refineParams!= null && refineParams != '' ) { |
|
297 |
url += refineParams; |
|
298 |
} |
|
299 |
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url) |
|
300 |
.pipe(map(res => res['meta']['total'])); |
|
301 |
} |
|
291 | 302 |
} |
Also available in: Unified diff
[Library|Trunk]
Search Find:
count query: use /resources2, use newSearchPage method, for creating the parameters (DOI, orcid, quotes)
count outcomes: add open access filter
fix keyword parameters
for the active tab, initialize results total number with null