Project

General

Profile

« Previous | Next » 

Revision 59742

[Explore|Trunk]

- add timeout interceptor in app module

- update query params in home search bar

View differences:

home.component.ts
387 387
    if (this.selectedEntity == "result") {
388 388
      if (this.resultTypes) {
389 389
        let values = [];
390
        console.log(this.resultTypes.values)
391 390
        for(let value of this.resultTypes.values){
392 391
          if (value.selected) {
393 392
            values.push(value.id);
......
397 396
          parameterNames.push("type");
398 397
          parameterValues.push(values.join(","));
399 398
        }
400
        console.log(parameterNames)
401
        console.log(parameterValues)
402 399
        if (this.resultsQuickFilter) {
403 400
          parameterNames.push("qf");
404 401
          parameterValues.push("" + this.resultsQuickFilter.selected);
......
406 403
      }
407 404
    }
408 405
    if(this.keyword.length > 0) {
409
      parameterNames.push("q");
406
      parameterNames.push("fv0");
410 407
      parameterValues.push(this.keyword);
411
      parameterNames.push("op");
412
      parameterValues.push("and");
408
      parameterNames.push("f0");
409
      parameterValues.push("q");
413 410
    }
414 411
    console.log( this.routerHelper.createQueryParams(parameterNames, parameterValues))
415 412
    this._router.navigate([url], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)});

Also available in: Unified diff