diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts
index 17b8a75..fade2b9 100644
--- a/src/app/community/community.component.ts
+++ b/src/app/community/community.component.ts
@@ -1,4 +1,4 @@
-import {Component, ElementRef, Inject, Input, Renderer2, ViewChild} from '@angular/core';
+import {ChangeDetectorRef, Component, ElementRef, Inject, Input, Renderer2, ViewChild} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {DOCUMENT, Location} from '@angular/common';
import {Meta, Title} from '@angular/platform-browser';
@@ -94,6 +94,17 @@ export class CommunityComponent {
selectedEntity;
selectedEntitySimpleUrl;
selectedEntityAdvancedUrl;
+ resultTypes: Filter = {
+ values: [],
+ filterId: "type",
+ countSelectedValues: 0,
+ filterType: 'checkbox',
+ originalFilterId: "",
+ valueIsExact: true,
+ title: "Type",
+ filterOperator: "or"
+ };
+
keyword: string = "";
customFilter;
placeholderText = "Search by title, author, abstract, DOI, orcid... ";
@@ -103,6 +114,7 @@ export class CommunityComponent {
filterId: "resultbestaccessright",
value: "Open Access"
};
+ disableSelect: boolean = true;
constructor(
private element: ElementRef,
@@ -122,6 +134,7 @@ export class CommunityComponent {
private seoService: SEOService,
private userManagementService: UserManagementService,
private _renderer2: Renderer2,
+ private cdr: ChangeDetectorRef,
@Inject(DOCUMENT) private _document: Document) {
var description = "OpenAIRE - Connect, Community Dashboard, research community";
@@ -560,5 +573,10 @@ export class CommunityComponent {
}
isPrivate(){
return ConnectHelper.isPrivate(this.community, this.user);
+ }
+
+ disableSelectChange(event: boolean) {
+ this.disableSelect = event;
+ this.cdr.detectChanges();
}
}
diff --git a/src/app/community/community.module.ts b/src/app/community/community.module.ts
index d6f48f8..dfbe8ec 100644
--- a/src/app/community/community.module.ts
+++ b/src/app/community/community.module.ts
@@ -29,6 +29,9 @@ import {SearchTabModule} from "../openaireLibrary/utils/tabs/contents/search-tab
import {ErrorMessagesModule} from "../openaireLibrary/utils/errorMessages.module";
import {SafeHtmlPipeModule} from '../openaireLibrary/utils/pipes/safeHTMLPipe.module';
import {ErrorModule} from "../openaireLibrary/error/error.module";
+import {AdvancedSearchInputModule} from '../openaireLibrary/sharedComponents/advanced-search-input/advanced-search-input.module';
+import {InputModule} from '../openaireLibrary/sharedComponents/input/input.module';
+import {QuickSelectionsModule} from '../openaireLibrary/searchPages/searchUtils/quick-selections.module';
@NgModule({
imports: [
@@ -37,8 +40,8 @@ import {ErrorModule} from "../openaireLibrary/error/error.module";
SearchZenodoCommunitiesServiceModule, ZenodoCommunitiesServiceModule, SearchFormModule, SearchDataprovidersServiceModule, SearchProjectsServiceModule,
SearchResearchResultsServiceModule, SearchResultsModule, CuratorsModule, AffiliationsModule,
SEOServiceModule, MatSelectModule, EntitiesSelectionModule,
- TabsModule, SearchTabModule, ErrorMessagesModule
- , SafeHtmlPipeModule, ErrorModule
+ TabsModule, SearchTabModule, ErrorMessagesModule, SafeHtmlPipeModule, ErrorModule,
+ AdvancedSearchInputModule, InputModule, QuickSelectionsModule
],
declarations: [
CommunityComponent