From 216cf172bdbb04eb7e2a420f6e6a9399e2e98726 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Mon, 24 Jul 2023 19:19:26 +0300 Subject: [PATCH] [Connect | develop]: In search bars, set in placeholder the portal name according to the configuration name | Removed stepper from search bars in community home page, search projects and search datasources pages. 1. community.component: Get portalName by config.portalAsObservable>name and set placeholder to "Search "+portalName | Replaced input directive with search-input to remove stepper from search bar in community home page. 2. searchDataproviders.component.ts & searchProjects.component.ts: In set [entitiesSelection]="false" to remove stepper from search bar in search projects and search datasources pages. --- src/app/community/community.component.html | 37 +++++++++++----- src/app/community/community.module.ts | 3 +- src/app/openaireLibrary | 2 +- .../simple/searchDataproviders.component.ts | 8 ++-- .../simple/searchProjects.component.ts | 44 +++++++++---------- src/assets/common-assets | 2 +- src/assets/openaire-theme | 2 +- 7 files changed, 56 insertions(+), 42 deletions(-) diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index bc043a7..3483acb 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -156,21 +156,34 @@

{{community.shortTitle}}

-
+
{{community.title}}
-
- - -
-
-
-
- -
+ + + + + + + + + + + + + + +
diff --git a/src/app/community/community.module.ts b/src/app/community/community.module.ts index 3e7e4b8..6762dff 100644 --- a/src/app/community/community.module.ts +++ b/src/app/community/community.module.ts @@ -34,6 +34,7 @@ import {InputModule} from '../openaireLibrary/sharedComponents/input/input.modul 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: [ @@ -43,7 +44,7 @@ import {NoLoadPaging} from '../openaireLibrary/searchPages/searchUtils/no-load-p SearchResearchResultsServiceModule, SearchResultsModule, CuratorsModule, AffiliationsModule, SEOServiceModule, MatSelectModule, EntitiesSelectionModule, TabsModule, SearchTabModule, ErrorMessagesModule, SafeHtmlPipeModule, ErrorModule, - AdvancedSearchInputModule, InputModule, QuickSelectionsModule, IconsModule, NoLoadPaging + AdvancedSearchInputModule, InputModule, QuickSelectionsModule, IconsModule, NoLoadPaging, SearchInputModule ], declarations: [ CommunityComponent diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 4700cc8..901855d 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 4700cc82c866ed86158234f706fc52360bc34637 +Subproject commit 901855daa9cddefad13a94acc9edb09f2500dc96 diff --git a/src/app/searchPages/simple/searchDataproviders.component.ts b/src/app/searchPages/simple/searchDataproviders.component.ts index 534bebe..7f49746 100644 --- a/src/app/searchPages/simple/searchDataproviders.component.ts +++ b/src/app/searchPages/simple/searchDataproviders.component.ts @@ -21,15 +21,15 @@ import {SearchResult} from "../../openaireLibrary/utils/entities/searchResult"; selector: 'openaire-search-dataproviders', template: ` - - + [simpleSearchLink]="properties.searchLinkToProjects" + [disableForms]="disableForms" + [disableRefineForms]="disableRefineForms" + [loadPaging]="loadPaging" + [oldTotalResults]="oldTotalResults" + [openaireLink]="'https://' + (properties.environment == 'production'?'':'beta.') + 'explore.openaire.eu/search/find/projects'" + [includeOnlyResultsAndFilter]="false" + [hasPrefix]="false" + searchFormClass="datasourcesTableSearchForm" [entitiesSelection]="false" [showSwitchSearchLink]="false" + [filters]="filters" + [simpleView]="true" formPlaceholderText="Search by name..." + [showResultCount]="false" [showIndexInfo]="false" [showDownload]="false" + [sort]="false" [showBreadcrumb]="true" + [customFilter]=customFilter [searchForm]="{dark: false, class: 'search-form'}"> + ` }) diff --git a/src/assets/common-assets b/src/assets/common-assets index 39cb4e5..2fd5784 160000 --- a/src/assets/common-assets +++ b/src/assets/common-assets @@ -1 +1 @@ -Subproject commit 39cb4e56d0320975fbd08fb5e9c68b87b0c82a10 +Subproject commit 2fd57843f85125e54adfb95b35776755037ea359 diff --git a/src/assets/openaire-theme b/src/assets/openaire-theme index 1e06310..cf3dab8 160000 --- a/src/assets/openaire-theme +++ b/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit 1e06310b8b2b56f131754eaded615b6cf32c5848 +Subproject commit cf3dab89f7356b88abfe6f125930076466e8a780