uncheck research products categories by default

This commit is contained in:
Alex Martzios 2022-05-20 12:36:29 +03:00
parent 131bec9d17
commit 74ce69909f
1 changed files with 4 additions and 4 deletions

View File

@ -259,16 +259,16 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit{
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: "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: "Research data", 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: "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: "Other research products", id: "other", selected: false, number: 0});
}
this.init(this.showDatasets, this.showSoftware, this.showPublications, this.showDatasets, this.showSoftware, this.showOrp, this.showProjects, this.showDataProviders, this.showOrganizations);
}