diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 6c1adca..4bc05b6 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -10,7 +10,7 @@
@@ -43,20 +43,20 @@
diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 3dbf610..456be21 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -332,7 +332,28 @@ export class HomeComponent { parameterNames.push("f0"); parameterValues.push("q"); } - console.log( this.routerHelper.createQueryParams(parameterNames, parameterValues)) + if(this.customFilter){ + parameterNames.push(this.customFilter.queryFieldName); + parameterValues.push(this.customFilter.valueId); + parameterNames.push("cf"); + parameterValues.push("true"); + } this._router.navigate([url], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)}); } + getQueryParamsForAdvancedSearch(entity){ + let params = {}; + if (entity == "result") { + if (this.resultsQuickFilter) { + params["qf"] = "" + this.resultsQuickFilter.selected; + } + } + if(this.keyword.length > 0) { + params["fv0"] = "" + this.keyword; + params["f0"] = "q"; + } + if(this.customFilter){ + params = this.customFilter.getParameters(params); + } + return params; + } } diff --git a/src/app/searchPages/advanced/searchResearchResults.component.ts b/src/app/searchPages/advanced/searchResearchResults.component.ts index 3e29634..8709483 100644 --- a/src/app/searchPages/advanced/searchResearchResults.component.ts +++ b/src/app/searchPages/advanced/searchResearchResults.component.ts @@ -8,7 +8,7 @@ import {properties} from "../../../environments/environment"; @Component({ selector: 'openaire-search-results', template: ` - + ` })