From 8da7eafe81bf129407c205d115bacfe0f0380f5a Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 5 Sep 2023 17:46:42 +0300 Subject: [PATCH 1/2] Change style of private community when user is not logged in. --- src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ef485d0..3ccbbd8 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -315,7 +315,7 @@ export class AppComponent implements OnInit, OnDestroy { } else { this.properties.adminToolsPortalType = "connect"; if (this.document) { - this.initLayout('connect'); + this.initLayout(this.communityId?this.communityId:'connect'); } } this.configurationService.initPortal(this.properties, (communityId) ? communityId : this.properties.adminToolsPortalType); @@ -455,7 +455,7 @@ export class AppComponent implements OnInit, OnDestroy { } this.showMenu = true; } else { - this.communityId = null; + this.communityId = (this.community && ConnectHelper.isPrivate(this.community, this.user))?this.community.communityId:null; this.configurationService.initPortal(this.properties, "connect"); this.buildConnectMenu(true); if (this.community && this.community.status == "manager") { From 9129ace1f894a814947ccd1376bc5d5b18bc2ce9 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 12 Sep 2023 15:36:41 +0300 Subject: [PATCH 2/2] Revert stepper in search in community's home page --- src/app/community/community.component.html | 20 +++++++++++--------- src/app/community/community.module.ts | 21 ++++++++++++++------- src/app/openaireLibrary | 2 +- 3 files changed, 26 insertions(+), 17 deletions(-) diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index 3483acb..5a60ce9 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -174,16 +174,18 @@ -
-
- - Advanced search - +
+ + +
+
+
+
+ +
-
diff --git a/src/app/community/community.module.ts b/src/app/community/community.module.ts index 6762dff..66cd34c 100644 --- a/src/app/community/community.module.ts +++ b/src/app/community/community.module.ts @@ -12,29 +12,36 @@ import {InviteModule} from '../utils/subscribe/invite/invite.module'; import {ManageModule} from '../openaireLibrary/utils/manage/manage.module'; import {StatisticsModule} from "../statistics/statistics.module"; -import {SearchZenodoCommunitiesServiceModule} from '../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunitiesService.module'; -import {ZenodoCommunitiesServiceModule} from '../openaireLibrary/connect/zenodoCommunities/zenodo-communitiesService.module'; +import { + SearchZenodoCommunitiesServiceModule +} from '../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunitiesService.module'; +import { + ZenodoCommunitiesServiceModule +} from '../openaireLibrary/connect/zenodoCommunities/zenodo-communitiesService.module'; import {SearchFormModule} from '../openaireLibrary/searchPages/searchUtils/searchForm.module'; -import {SearchDataprovidersServiceModule} from "../openaireLibrary/connect/contentProviders/searchDataprovidersService.module"; +import { + SearchDataprovidersServiceModule +} from "../openaireLibrary/connect/contentProviders/searchDataprovidersService.module"; import {SearchProjectsServiceModule} from '../openaireLibrary/connect/projects/searchProjectsService.module'; import {SearchResearchResultsServiceModule} from "../openaireLibrary/services/searchResearchResultsService.module"; import {SearchResultsModule} from "../openaireLibrary/searchPages/searchUtils/searchResults.module"; import {CuratorsModule} from "../curators/curators.module"; import {AffiliationsModule} from "../affiliations/affiliations.module"; import {SEOServiceModule} from "../openaireLibrary/sharedComponents/SEO/SEOService.module"; -import { MatSelectModule } from "@angular/material/select"; +import {MatSelectModule} from "@angular/material/select"; import {EntitiesSelectionModule} from "../openaireLibrary/searchPages/searchUtils/entitiesSelection.module"; import {TabsModule} from "../openaireLibrary/utils/tabs/tabs.module"; import {SearchTabModule} from "../openaireLibrary/utils/tabs/contents/search-tab.module"; 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 { + 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'; import {IconsModule} from '../openaireLibrary/utils/icons/icons.module'; import {NoLoadPaging} from '../openaireLibrary/searchPages/searchUtils/no-load-paging.module'; -import {SearchInputModule} from "../openaireLibrary/sharedComponents/search-input/search-input.module"; @NgModule({ imports: [ @@ -44,7 +51,7 @@ import {SearchInputModule} from "../openaireLibrary/sharedComponents/search-inpu SearchResearchResultsServiceModule, SearchResultsModule, CuratorsModule, AffiliationsModule, SEOServiceModule, MatSelectModule, EntitiesSelectionModule, TabsModule, SearchTabModule, ErrorMessagesModule, SafeHtmlPipeModule, ErrorModule, - AdvancedSearchInputModule, InputModule, QuickSelectionsModule, IconsModule, NoLoadPaging, SearchInputModule + AdvancedSearchInputModule, InputModule, QuickSelectionsModule, IconsModule, NoLoadPaging ], declarations: [ CommunityComponent diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 1b98944..f679385 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 1b989441db0b1f808d1b626d3588901d54ffaf90 +Subproject commit f6793857253fa5ca79e9576b25d0f8d0f67d3835