From 98989903854ff0f9b66f1bfd3750921a3cfac7a1 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 20 May 2022 16:21:11 +0300 Subject: [PATCH] [Aggregator | new-theme]: home.component.ts: In home search set input unchecked for research products categories as default & in "name" use OpenaireEntities. --- src/app/home/home.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 18c2a0f..d1767ae 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -8,7 +8,7 @@ import {SearchDataprovidersService} from '../openaireLibrary/services/searchData import {SearchProjectsService} from '../openaireLibrary/services/searchProjects.service'; import {SearchOrganizationsService} from '../openaireLibrary/services/searchOrganizations.service'; import {RefineFieldResultsService} from '../openaireLibrary/services/refineFieldResults.service'; -import {SearchFields} from '../openaireLibrary/utils/properties/searchFields'; +import {OpenaireEntities, SearchFields} from '../openaireLibrary/utils/properties/searchFields'; import {RouterHelper} from '../openaireLibrary/utils/routerHelper.class'; import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties'; @@ -130,16 +130,16 @@ export class HomeComponent { this.showDataProviders = !!showEntity["datasource"]; this.showOrganizations = !!showEntity["organization"]; if(this.showPublications){ - this.resultTypes.values.push({name: "Publications" , id:"publications",selected:true, number:0}); + this.resultTypes.values.push({name: OpenaireEntities.PUBLICATIONS , id:"publications",selected:false, number:0}); } if(this.showDatasets){ - this.resultTypes.values.push({name: "Research data" , id:"datasets",selected:true, number:0}); + this.resultTypes.values.push({name: OpenaireEntities.DATASETS , id:"datasets",selected:false, number:0}); } if(this.showSoftware){ - this.resultTypes.values.push({name: "Software" , id:"software",selected:true, number:0}); + this.resultTypes.values.push({name: OpenaireEntities.SOFTWARE , id:"software",selected:false, number:0}); } if(this.showOrp){ - this.resultTypes.values.push({name: "Other research products" , id:"other",selected:true, number:0}); + this.resultTypes.values.push({name: OpenaireEntities.OTHER , id:"other",selected:false, number:0}); } if(this.numbersComponent) { this.numbersComponent.init(false, false, this.showPublications, this.showDatasets,