diff --git a/explore/src/app/app.module.ts b/explore/src/app/app.module.ts index 3b0a1f67..bf621ced 100755 --- a/explore/src/app/app.module.ts +++ b/explore/src/app/app.module.ts @@ -20,6 +20,7 @@ import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service import {PageURLResolverModule} from "./openaireLibrary/utils/pageURLResolver.module"; import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module"; import {CacheInterceptorService} from "./openaireLibrary/cache-interceptor.service"; +import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service"; //import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service'; @@ -55,7 +56,9 @@ import {CacheInterceptorService} from "./openaireLibrary/cache-interceptor.servi provide: HTTP_INTERCEPTORS, useClass: HttpInterceptorService, multi: true - } + }, + [{ provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }], + [{ provide: DEFAULT_TIMEOUT, useValue: 30000 }] ], bootstrap: [AppComponent] }) diff --git a/explore/src/app/home/home.component.ts b/explore/src/app/home/home.component.ts index 6cd91122..93d1a890 100644 --- a/explore/src/app/home/home.component.ts +++ b/explore/src/app/home/home.component.ts @@ -387,7 +387,6 @@ export class HomeComponent { if (this.selectedEntity == "result") { if (this.resultTypes) { let values = []; - console.log(this.resultTypes.values) for(let value of this.resultTypes.values){ if (value.selected) { values.push(value.id); @@ -397,8 +396,6 @@ export class HomeComponent { parameterNames.push("type"); parameterValues.push(values.join(",")); } - console.log(parameterNames) - console.log(parameterValues) if (this.resultsQuickFilter) { parameterNames.push("qf"); parameterValues.push("" + this.resultsQuickFilter.selected); @@ -406,10 +403,10 @@ export class HomeComponent { } } if(this.keyword.length > 0) { - parameterNames.push("q"); + parameterNames.push("fv0"); parameterValues.push(this.keyword); - parameterNames.push("op"); - parameterValues.push("and"); + parameterNames.push("f0"); + parameterValues.push("q"); } console.log( this.routerHelper.createQueryParams(parameterNames, parameterValues)) this._router.navigate([url], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)});