diff --git a/apps/datahub/src/app/app.module.ts b/apps/datahub/src/app/app.module.ts index ba063cb92..d7a5ade21 100644 --- a/apps/datahub/src/app/app.module.ts +++ b/apps/datahub/src/app/app.module.ts @@ -13,8 +13,8 @@ import { EXTERNAL_VIEWER_URL_TEMPLATE, FeatureRecordModule, GN_UI_VERSION, - WEB_COMPONENT_EMBEDDER_URL, RecordMetaComponent, + WEB_COMPONENT_EMBEDDER_URL, } from '@geonetwork-ui/feature/record' import { DefaultRouterModule, @@ -27,6 +27,7 @@ import { import { FeatureSearchModule, FILTER_GEOMETRY, + LocationSearchComponent, RECORD_URL_TOKEN, } from '@geonetwork-ui/feature/search' import { @@ -102,6 +103,7 @@ import { matStarOutline, } from '@ng-icons/material-icons/outline' import { NgIconsModule, provideNgIconsConfig } from '@ng-icons/core' +import { ORGANIZATIONS_STRATEGY } from '@geonetwork-ui/api/repository/gn4' export const metaReducers: MetaReducer[] = !environment.production ? [] : [] @@ -173,6 +175,7 @@ export const metaReducers: MetaReducer[] = !environment.production ? [] : [] }), OrganisationsComponent, LanguageSwitcherComponent, + LocationSearchComponent, ], providers: [ provideNgIconsConfig({ @@ -237,6 +240,10 @@ export const metaReducers: MetaReducer[] = !environment.production ? [] : [] provide: ORGANIZATION_URL_TOKEN, useValue: `${ROUTER_ROUTE_SEARCH}?${ROUTE_PARAMS.PUBLISHER}=\${name}`, }, + { + provide: ORGANIZATIONS_STRATEGY, + useValue: 'groups', + }, { provide: DO_NOT_USE_DEFAULT_BASEMAP, useFactory: () => getOptionalMapConfig()?.DO_NOT_USE_DEFAULT_BASEMAP, diff --git a/apps/datahub/src/app/home/home-header/home-header.component.html b/apps/datahub/src/app/home/home-header/home-header.component.html index 9591fa2da..8231d5c26 100644 --- a/apps/datahub/src/app/home/home-header/home-header.component.html +++ b/apps/datahub/src/app/home/home-header/home-header.component.html @@ -14,19 +14,27 @@ [style.opacity]="expandRatio" [innerHTML]="'datahub.header.title.html' | translate" > - -