Project

General

Profile

« Previous | Next » 

Revision 58416

[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

View differences:

searchDataproviders.service.ts
471 471

  
472 472
        return this.numOfDataproviders(url, properties);
473 473
    }
474
  numOfSearchDataproviders2(params: string, properties:EnvProperties, refineQuery:string=null):any {
475
    let url: string = properties.searchAPIURLLAst+"resources2/?format=json&size=0&type=datasources";
476
    if(params != "") {
477
      url += "&query=" +params;
478
    }
479
    if(refineQuery!= null && refineQuery != ''  ) {
480
      url += refineQuery;
481
    }
482
    return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url)
483
      .pipe(map(res => res['meta']['total']));
484
  }
474 485
/*
475 486
    private quote(word: any): string {
476 487
        return '"'+word+'"';

Also available in: Unified diff