From 41f5a6fc991960d8df2c7802adc58d0cc61eaf8d Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Mon, 27 Jun 2022 15:02:16 +0300 Subject: [PATCH] start on dashboard's initial page --- src/app/community/community.component.html | 84 ++++++++-------------- src/app/community/community.component.ts | 20 +++++- src/app/community/community.module.ts | 7 +- 3 files changed, 52 insertions(+), 59 deletions(-) diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index 1e3bb22..6bbd9c3 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -191,60 +191,33 @@
-
-
-
-

- {{community.title}} -

-
- {{community.shortTitle}} -
-
-
-
+
+
+
+
+ {{community.shortTitle}} +
+

+ {{community.title}} +

+
+ + +
+
+
+
+ +
+
+
+
+
+
-
-
-
- -
- -
-
- - -
- -
-
- - - -
-
-
-
-
- -
+
@@ -674,9 +647,8 @@
- -
+ +
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