-
-
-
- organization.lastPublishedDatasets
-
-
+
+
+
+
+
+ organization.lastPublishedDatasets
+
0
+ !isSearchFacadeLoading && lastPublishedDatasets.length > 0
"
>
+
-
-
-
+
-
-
+
0;
+ !isSearchFacadeLoading && lastPublishedDatasets.length > 0;
else orgHasNoDataset
"
>
+ 1"
+ class="flex flex-row justify-center gap-[14px] p-1 mx-auto"
+ [ngClass]="paginationContainerClass"
+ >
+
+
-
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
diff --git a/apps/datahub/src/app/organization/organization-details/organization-details.component.spec.ts b/apps/datahub/src/app/organization/organization-details/organization-details.component.spec.ts
index 6e4d6078ac..bec7bfd76b 100644
--- a/apps/datahub/src/app/organization/organization-details/organization-details.component.spec.ts
+++ b/apps/datahub/src/app/organization/organization-details/organization-details.component.spec.ts
@@ -52,10 +52,6 @@ class OrganisationsServiceMock {
}
const anOrganizationWithManyDatasets: Organization = ORGANISATIONS_FIXTURE[0]
-const anOrganizationWithOnlyOneDataset: Organization = {
- ...ORGANISATIONS_FIXTURE[0],
- recordCount: 1,
-}
const oneDataset = [DATASET_RECORDS[0]]
const manyDatasets = DATASET_RECORDS.concat(DATASET_RECORDS[0])
@@ -204,14 +200,9 @@ describe('OrganizationDetailsComponent', () => {
organizationIsLoading.next(true)
fixture.detectChanges()
- const organizationDetailsLastPublishedDatasetsPreviousNextButtons =
- getHTMLElement(
- 'organizationDetailsLastPublishedDatasetsPreviousNextButtons'
- )
+ const orgDetailsNavBtn = getHTMLElement('orgDetailsNavBtn')
- expect(
- organizationDetailsLastPublishedDatasetsPreviousNextButtons
- ).toBeFalsy()
+ expect(orgDetailsNavBtn).toBeFalsy()
})
it('should not be displayed organization is loaded but has no pagination', () => {
@@ -219,14 +210,9 @@ describe('OrganizationDetailsComponent', () => {
totalPages.next(1)
fixture.detectChanges()
- const organizationDetailsLastPublishedDatasetsPreviousNextButtons =
- getHTMLElement(
- 'organizationDetailsLastPublishedDatasetsPreviousNextButtons'
- )
+ const orgDetailsNavBtn = getHTMLElement('orgDetailsNavBtn')
- expect(
- organizationDetailsLastPublishedDatasetsPreviousNextButtons
- ).toBeFalsy()
+ expect(orgDetailsNavBtn).toBeFalsy()
})
it('should be displayed if organization is loadded and have pagination', () => {
@@ -234,39 +220,29 @@ describe('OrganizationDetailsComponent', () => {
totalPages.next(10)
fixture.detectChanges()
- const organizationDetailsLastPublishedDatasetsPreviousNextButtons =
- getHTMLElement(
- 'organizationDetailsLastPublishedDatasetsPreviousNextButtons'
- )
+ const orgDetailsNavBtn = getHTMLElement('orgDetailsNavBtn')
- expect(
- organizationDetailsLastPublishedDatasetsPreviousNextButtons
- ).toBeTruthy()
+ expect(orgDetailsNavBtn).toBeTruthy()
})
it('should call paginate from the facade if button is clicked', () => {
const initialPageNumber = currentPage.getValue()
const nextPageNumber = initialPageNumber + 1
- const organizationDetailsLastPublishedDatasetsPreviousNextButtons =
- getHTMLElement(
- 'organizationDetailsLastPublishedDatasetsPreviousNextButtons'
- )
+ const orgDetailsNavBtn = getHTMLElement('orgDetailsNavBtn')
- const nextButton =
- organizationDetailsLastPublishedDatasetsPreviousNextButtons?.querySelector(
- '[data-test="nextButton"]'
- ) as HTMLElement
+ const nextButton = orgDetailsNavBtn?.querySelector(
+ '[data-test="nextButton"]'
+ ) as HTMLElement
;(nextButton?.firstChild as HTMLElement).click()
fixture.detectChanges()
expect(searchFacade.paginate).toHaveBeenCalledWith(nextPageNumber)
- const previousButton =
- organizationDetailsLastPublishedDatasetsPreviousNextButtons?.querySelector(
- '[data-test="previousButton"]'
- ) as HTMLElement
+ const previousButton = orgDetailsNavBtn?.querySelector(
+ '[data-test="previousButton"]'
+ ) as HTMLElement
;(previousButton?.firstChild as HTMLElement).click()
fixture.detectChanges()
@@ -276,20 +252,13 @@ describe('OrganizationDetailsComponent', () => {
describe('Search all button', () => {
it('should send to the search page filtered on the correct organization', () => {
- const organizationDetailsLastPublishedDatasetsSearchAllButton =
- getHTMLElement(
- 'organizationDetailsLastPublishedDatasetsSearchAllButton'
- )
-
- expect(
- organizationDetailsLastPublishedDatasetsSearchAllButton
- ).toBeTruthy()
-
- expect(
- organizationDetailsLastPublishedDatasetsSearchAllButton?.getAttribute(
- 'href'
- )
- ).toEqual(
+ const orgDetailsSearchAllBtn = getHTMLElement(
+ 'orgDetailsSearchAllBtn'
+ )
+
+ expect(orgDetailsSearchAllBtn).toBeTruthy()
+
+ expect(orgDetailsSearchAllBtn?.getAttribute('href')).toEqual(
`/${ROUTER_ROUTE_SEARCH}?publisher=${encodeURIComponent(
anOrganizationWithManyDatasets.name
)}`
@@ -300,21 +269,26 @@ describe('OrganizationDetailsComponent', () => {
describe('Last published datasets', () => {
it('should display the datasets properly', () => {
- const organizationPageLastPublishedDatasets = getHTMLElement(
- 'organizationPageLastPublishedDatasets'
- )
+ const orgPageLasPubDat = getHTMLElement('orgPageLasPubDat')
- expect(organizationPageLastPublishedDatasets).toBeTruthy()
- expect(organizationPageLastPublishedDatasets?.children.length).toEqual(
- desiredPageSize
- )
+ expect(orgPageLasPubDat).toBeTruthy()
+ expect(orgPageLasPubDat?.children.length).toEqual(desiredPageSize)
results.next(oneDataset)
fixture.detectChanges()
- expect(organizationPageLastPublishedDatasets?.children.length).toEqual(
- 1
- )
+ expect(orgPageLasPubDat?.children.length).toEqual(1)
+ })
+
+ it('should display the orgHasNodataset error component if the org has no dataset', () => {
+ results.next([])
+ fixture.detectChanges()
+
+ const orgHasNoDataset = getHTMLElement('lastPubliDatasets')
+
+ console.log(orgHasNoDataset?.outerHTML)
+
+ expect(orgHasNoDataset).toBeTruthy()
})
})
})
diff --git a/apps/datahub/src/app/organization/organization-details/organization-details.component.ts b/apps/datahub/src/app/organization/organization-details/organization-details.component.ts
index 23ab3fd7a2..2656219bee 100644
--- a/apps/datahub/src/app/organization/organization-details/organization-details.component.ts
+++ b/apps/datahub/src/app/organization/organization-details/organization-details.component.ts
@@ -4,11 +4,13 @@ import {
ChangeDetectorRef,
Component,
Input,
+ OnChanges,
OnDestroy,
OnInit,
+ SimpleChanges,
ViewChild,
} from '@angular/core'
-import { AsyncPipe, NgForOf, NgIf } from '@angular/common'
+import { AsyncPipe, NgClass, NgForOf, NgIf } from '@angular/common'
import {
CatalogRecord,
Organization,
@@ -32,7 +34,15 @@ import {
} from '@geonetwork-ui/ui/elements'
import { UiSearchModule } from '@geonetwork-ui/ui/search'
import { SearchFacade } from '@geonetwork-ui/feature/search'
-import { Observable, of, Subscription, switchMap } from 'rxjs'
+import {
+ BehaviorSubject,
+ combineLatest,
+ distinctUntilChanged,
+ Observable,
+ of,
+ Subscription,
+ switchMap,
+} from 'rxjs'
import { UiDatavizModule } from '@geonetwork-ui/ui/dataviz'
import { RouterLink } from '@angular/router'
import { ROUTER_ROUTE_SEARCH } from '@geonetwork-ui/feature/router'
@@ -63,27 +73,36 @@ import { UiWidgetsModule } from '@geonetwork-ui/ui/widgets'
UiDatavizModule,
RouterLink,
UiWidgetsModule,
+ NgClass,
],
})
export class OrganizationDetailsComponent
- implements OnInit, AfterViewInit, OnDestroy
+ implements OnInit, AfterViewInit, OnDestroy, OnChanges
{
protected readonly Error = Error
protected readonly ErrorType = ErrorType
+ protected readonly ROUTER_ROUTE_SEARCH = ROUTER_ROUTE_SEARCH
- @Input() organization: Organization
+ protected get pages() {
+ return new Array(this.totalPages).fill(0).map((_, i) => i + 1)
+ }
lastPublishedDatasets$: Observable
= of([])
subscriptions$: Subscription = new Subscription()
- isOrganizationsLoading = true
+ isSearchFacadeLoading = true
totalPages = 0
currentPage = 1
isFirstPage = this.currentPage === 1
isLastPage = false
+ organizationHasChanged$ = new BehaviorSubject(undefined)
+
+ @Input() organization?: Organization
+ @Input() paginationContainerClass = 'w-full bottom-0 top-auto'
+
@ViewChild(BlockListComponent) list: BlockListComponent
constructor(
@@ -95,19 +114,30 @@ export class OrganizationDetailsComponent
ngOnInit(): void {
this.searchFacade.setPageSize(3)
- this.lastPublishedDatasets$ = this.organizationsService
- .getFiltersForOrgs([this.organization])
- .pipe(
- switchMap((filters) => {
- return this.searchFacade
- .setFilters(filters)
- .setSortBy(['desc', 'changeDate']).results$
- })
- )
+ this.lastPublishedDatasets$ = this.organizationHasChanged$.pipe(
+ distinctUntilChanged(),
+ switchMap(() => {
+ return this.organizationsService
+ .getFiltersForOrgs([this.organization])
+ .pipe(
+ switchMap((filters) => {
+ return this.searchFacade
+ .setFilters(filters)
+ .setSortBy(['desc', 'changeDate']).results$
+ })
+ )
+ })
+ )
this.manageSubscriptions()
}
+ ngOnChanges(changes: SimpleChanges): void {
+ if (changes['organization']) {
+ this.organizationHasChanged$.next()
+ }
+ }
+
ngAfterViewInit() {
// this is required to show the pagination correctly
this.changeDetector.detectChanges()
@@ -129,38 +159,35 @@ export class OrganizationDetailsComponent
}
}
- private manageSubscriptions() {
- this.subscriptions$.add(
- this.searchFacade.isLoading$.subscribe(
- (isOrganizationsLoading) =>
- (this.isOrganizationsLoading = isOrganizationsLoading)
- )
- )
-
- this.subscriptions$.add(
- this.searchFacade.totalPages$.subscribe(
- (totalPages) => (this.totalPages = totalPages)
- )
- )
-
- this.subscriptions$.add(
- this.searchFacade.isBeginningOfResults$.subscribe(
- (isBeginningOfResults) => (this.isFirstPage = isBeginningOfResults)
- )
- )
-
- this.subscriptions$.add(
- this.searchFacade.isEndOfResults$.subscribe(
- (isEndOfResults) => (this.isLastPage = isEndOfResults)
- )
- )
+ goToPage(page: number) {
+ this.searchFacade.paginate(page)
+ }
+ private manageSubscriptions() {
this.subscriptions$.add(
- this.searchFacade.currentPage$.subscribe(
- (currentPage) => (this.currentPage = currentPage)
+ combineLatest([
+ this.searchFacade.isLoading$.pipe(distinctUntilChanged()),
+ this.searchFacade.totalPages$.pipe(distinctUntilChanged()),
+ this.searchFacade.isBeginningOfResults$.pipe(distinctUntilChanged()),
+ this.searchFacade.isEndOfResults$.pipe(distinctUntilChanged()),
+ this.searchFacade.currentPage$.pipe(distinctUntilChanged()),
+ ]).subscribe(
+ ([
+ isSearchFacadeLoading,
+ totalPages,
+ isBeginningOfResults,
+ isEndOfResults,
+ currentPage,
+ ]) => {
+ this.isSearchFacadeLoading = isSearchFacadeLoading
+ this.totalPages = totalPages
+ this.isFirstPage = isBeginningOfResults
+ this.isLastPage = isEndOfResults
+ this.currentPage = currentPage
+ }
)
)
}
- protected readonly ROUTER_ROUTE_SEARCH = ROUTER_ROUTE_SEARCH
+ protected readonly errorTypes = ErrorType
}
diff --git a/apps/datahub/src/app/organization/header-organization/organization-header.component.css b/apps/datahub/src/app/organization/organization-header/organization-header.component.css
similarity index 100%
rename from apps/datahub/src/app/organization/header-organization/organization-header.component.css
rename to apps/datahub/src/app/organization/organization-header/organization-header.component.css
diff --git a/apps/datahub/src/app/organization/organization-header/organization-header.component.html b/apps/datahub/src/app/organization/organization-header/organization-header.component.html
new file mode 100644
index 0000000000..42e90a94bd
--- /dev/null
+++ b/apps/datahub/src/app/organization/organization-header/organization-header.component.html
@@ -0,0 +1,60 @@
+
+
+
+
+
+ {{ organization.name }}
+
+
+
+
+
diff --git a/apps/datahub/src/app/organization/header-organization/organization-header.component.spec.ts b/apps/datahub/src/app/organization/organization-header/organization-header.component.spec.ts
similarity index 100%
rename from apps/datahub/src/app/organization/header-organization/organization-header.component.spec.ts
rename to apps/datahub/src/app/organization/organization-header/organization-header.component.spec.ts
diff --git a/apps/datahub/src/app/organization/header-organization/organization-header.component.ts b/apps/datahub/src/app/organization/organization-header/organization-header.component.ts
similarity index 75%
rename from apps/datahub/src/app/organization/header-organization/organization-header.component.ts
rename to apps/datahub/src/app/organization/organization-header/organization-header.component.ts
index 58c51e903f..8e62fd986d 100644
--- a/apps/datahub/src/app/organization/header-organization/organization-header.component.ts
+++ b/apps/datahub/src/app/organization/organization-header/organization-header.component.ts
@@ -6,6 +6,8 @@ import { UiCatalogModule } from '@geonetwork-ui/ui/catalog'
import { Organization } from '@geonetwork-ui/common/domain/model/record'
import { AsyncPipe, Location, NgIf } from '@angular/common'
import { MatIconModule } from '@angular/material/icon'
+import { ErrorType, UiElementsModule } from '@geonetwork-ui/ui/elements'
+import { Router } from '@angular/router'
@Component({
selector: 'datahub-organization-header',
@@ -20,10 +22,11 @@ import { MatIconModule } from '@angular/material/icon'
NgIf,
MatIconModule,
AsyncPipe,
+ UiElementsModule,
],
})
export class OrganizationHeaderComponent {
- @Input() organization: Organization
+ @Input() organization?: Organization
backgroundCss =
getThemeConfig().HEADER_BACKGROUND ||
@@ -31,9 +34,13 @@ export class OrganizationHeaderComponent {
foregroundColor = getThemeConfig().HEADER_FOREGROUND_COLOR || '#ffffff'
showLanguageSwitcher = getGlobalConfig().LANGUAGES?.length > 0
- constructor(private location: Location) {}
+ constructor(private location: Location, private router: Router) {}
back() {
- this.location.back()
+ this.organization
+ ? this.location.back()
+ : this.router.navigateByUrl('/organisations')
}
+
+ protected readonly errorTypes = ErrorType
}
diff --git a/apps/datahub/src/app/organization/organization-page/organization-page.component.ts b/apps/datahub/src/app/organization/organization-page/organization-page.component.ts
index a1dc77c981..99cc91b16b 100644
--- a/apps/datahub/src/app/organization/organization-page/organization-page.component.ts
+++ b/apps/datahub/src/app/organization/organization-page/organization-page.component.ts
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'
import { RouterFacade } from '@geonetwork-ui/feature/router'
import { AsyncPipe, NgIf } from '@angular/common'
-import { OrganizationHeaderComponent } from '../header-organization/organization-header.component'
+import { OrganizationHeaderComponent } from '../organization-header/organization-header.component'
import { OrganizationDetailsComponent } from '../organization-details/organization-details.component'
import { combineLatest, Observable, of, switchMap } from 'rxjs'
import { filter } from 'rxjs/operators'
diff --git a/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.spec.ts b/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.spec.ts
index fe4c0ad104..dd77d0a52c 100644
--- a/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.spec.ts
+++ b/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.spec.ts
@@ -50,12 +50,14 @@ const sampleOrgA: Organization = {
recordCount: 80,
description: 'A description for Köniz Municipality',
website: new URL('https://www.koeniz.ch/'),
+ email: 'reto.jau@koeniz.ch',
}
const sampleOrgB: Organization = {
logoUrl: new URL('http://localhost/geonetwork/images/harvesting/bakom.png'),
name: 'Office fédéral de la communication OFCOM',
recordCount: 50,
website: new URL('http://www.bakom.admin.ch/'),
+ email: 'christian.meier@bakom.admin.ch',
}
const sampleOrgC: Organization = {
logoUrl: new URL(
@@ -65,6 +67,7 @@ const sampleOrgC: Organization = {
recordCount: 20,
description: 'A description for ARE',
website: new URL('http://www.are.admin.ch/'),
+ email: 'rolf.giezendanner@are.admin.ch',
}
class SearchApiServiceMock {
diff --git a/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.spec.ts b/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.spec.ts
index 10fb3101b8..5f17e9e1d7 100644
--- a/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.spec.ts
+++ b/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.spec.ts
@@ -25,21 +25,22 @@ const sampleOrgA: Organization = {
name: 'ARE',
recordCount: 5,
website: new URL('http://www.are.admin.ch/'),
+ email: 'rolf.giezendanner@are.admin.ch',
}
const sampleOrgB: Organization = {
logoUrl: new URL('http://localhost/geonetwork/images/harvesting/bakom.png'),
name: 'BAKOM',
recordCount: 2,
website: new URL('http://www.bakom.admin.ch/'),
+ email: 'christian.meier@bakom.admin.ch',
}
const sampleOrgC: Organization = {
- logoUrl: new URL(
- 'http://localhost/geonetwork/images/harvesting/ifremer-org.png'
- ),
+ logoUrl: new URL('http://localhost/geonetwork/images/harvesting/ifremer.png'),
name: 'Ifremer',
recordCount: 1,
description: "Institut français de recherche pour l'exploitation de la mer",
website: new URL('https://www.ifremer.fr/'),
+ email: 'ifremer.ifremer@ifremer.admin.fr',
}
let geonetworkVersion: string
diff --git a/libs/common/domain/src/lib/model/user/user.model.ts b/libs/common/domain/src/lib/model/user/user.model.ts
index fefd657049..591fc7bf18 100644
--- a/libs/common/domain/src/lib/model/user/user.model.ts
+++ b/libs/common/domain/src/lib/model/user/user.model.ts
@@ -5,6 +5,6 @@ export interface UserModel {
name: string
surname: string
email: string
- organization: string
+ organisation: string
profileIcon?: string
}
diff --git a/libs/feature/catalog/src/index.ts b/libs/feature/catalog/src/index.ts
index efa22c7852..54cc255a57 100644
--- a/libs/feature/catalog/src/index.ts
+++ b/libs/feature/catalog/src/index.ts
@@ -1,4 +1,5 @@
export * from './lib/feature-catalog.module'
+export * from './lib/organization-url.token'
export * from './lib/sources/sources.service'
export * from './lib/sources/sources.model'
export * from './lib/records/records.service'
diff --git a/libs/feature/catalog/src/lib/my-org/my-org.service.ts b/libs/feature/catalog/src/lib/my-org/my-org.service.ts
index 324884f5a7..8840cc3bba 100644
--- a/libs/feature/catalog/src/lib/my-org/my-org.service.ts
+++ b/libs/feature/catalog/src/lib/my-org/my-org.service.ts
@@ -27,12 +27,12 @@ export class MyOrgService {
this.orgService.organisations$,
]).pipe(
map(([user, allUsers, orgs]) => {
- const orgName = user.organization
+ const orgName = user.organisation
const org = orgs.find((org) => org.name === orgName)
const logoUrl = org?.logoUrl?.toString()
const recordCount = org?.recordCount
const userList = allUsers.filter(
- (user) => user.organization === orgName
+ (user) => user.organisation === orgName
)
const userCount = userList.length
return {
diff --git a/libs/feature/catalog/src/lib/organisations/organisations.component.spec.ts b/libs/feature/catalog/src/lib/organisations/organisations.component.spec.ts
index 70e97b09b7..138e62fdeb 100644
--- a/libs/feature/catalog/src/lib/organisations/organisations.component.spec.ts
+++ b/libs/feature/catalog/src/lib/organisations/organisations.component.spec.ts
@@ -4,6 +4,7 @@ import {
DebugElement,
EventEmitter,
Input,
+ NO_ERRORS_SCHEMA,
Output,
} from '@angular/core'
import { ComponentFixture, TestBed } from '@angular/core/testing'
@@ -27,8 +28,8 @@ class OrganisationsFilterMockComponent {
template: '',
})
class OrganisationPreviewMockComponent {
- @Input() organisation: Organization
- @Output() clickedOrganisation = new EventEmitter()
+ @Input() organization: Organization
+ @Output() clickedOrganization = new EventEmitter()
}
@Component({
@@ -85,6 +86,7 @@ describe('OrganisationsComponent', () => {
useClass: OrganisationsServiceMock,
},
],
+ schemas: [NO_ERRORS_SCHEMA],
})
.overrideComponent(OrganisationsComponent, {
set: { changeDetection: ChangeDetectionStrategy.Default },
@@ -118,10 +120,10 @@ describe('OrganisationsComponent', () => {
.map((debugElement) => debugElement.componentInstance)
})
it('should pass first organisation (sorted by name-asc) to first ui preview component', () => {
- expect(orgPreviewComponents[0].organisation.name).toEqual('A Data Org')
+ expect(orgPreviewComponents[0].organization.name).toEqual('A Data Org')
})
it('should pass 6th organisation (sorted by name-asc) on page to 6th ui preview component', () => {
- expect(orgPreviewComponents[5].organisation.name).toEqual('E Data Org')
+ expect(orgPreviewComponents[5].organization.name).toEqual('E Data Org')
})
})
describe('pass params to ui pagination component', () => {
@@ -152,13 +154,13 @@ describe('OrganisationsComponent', () => {
expect(paginationComponentDE.componentInstance.currentPage).toEqual(2)
})
it('should pass first organisation of second page (sorted by name-asc) to first ui preview component', () => {
- expect(orgPreviewComponents[0].organisation.name).toEqual(
+ expect(orgPreviewComponents[0].organization.name).toEqual(
'é Data Org'
)
})
it('should pass last organisation of second page (sorted by name-asc) to last ui preview component', () => {
expect(
- orgPreviewComponents[orgPreviewComponents.length - 1].organisation
+ orgPreviewComponents[orgPreviewComponents.length - 1].organization
.name
).toEqual('J Data Org')
})
@@ -193,12 +195,12 @@ describe('OrganisationsComponent', () => {
expect(organisations[0]).toEqual(ORGANISATIONS_FIXTURE[5])
})
it('should pass organisation with max recordCount to first preview component', () => {
- expect(orgPreviewComponents[0].organisation).toEqual(
+ expect(orgPreviewComponents[0].organization).toEqual(
ORGANISATIONS_FIXTURE[5]
)
})
it('should pass organisation with 6th highest recordCount to 6th preview component', () => {
- expect(orgPreviewComponents[5].organisation).toEqual(
+ expect(orgPreviewComponents[5].organization).toEqual(
ORGANISATIONS_FIXTURE[3]
)
})
diff --git a/libs/feature/router/src/lib/default/router.service.spec.ts b/libs/feature/router/src/lib/default/router.service.spec.ts
index bfae57c838..02e1736354 100644
--- a/libs/feature/router/src/lib/default/router.service.spec.ts
+++ b/libs/feature/router/src/lib/default/router.service.spec.ts
@@ -3,18 +3,24 @@ import { Router } from '@angular/router'
import { RouterService } from './router.service'
import { ROUTER_CONFIG } from './router.config'
+import { ROUTER_ROUTE_ORGANIZATION } from './constants'
const SearchRouteComponent = {
name: 'searchRoute',
}
const RecordRouteComponent = {
- name: 'recordhRoute',
+ name: 'recordRoute',
+}
+
+const OrganizationRouteComponent = {
+ name: 'organizationRoute',
}
const routerConfigMock = {
searchStateId: 'main',
searchRouteComponent: SearchRouteComponent,
recordRouteComponent: RecordRouteComponent,
+ organizationRouteComponent: OrganizationRouteComponent,
}
const RouterMock = {
resetConfig: jest.fn(),
@@ -37,10 +43,16 @@ const expectedRoutes = [
},
{
component: {
- name: 'recordhRoute',
+ name: 'recordRoute',
},
path: 'dataset/:metadataUuid',
},
+ {
+ path: `${ROUTER_ROUTE_ORGANIZATION}/:name`,
+ component: {
+ name: 'organizationRoute',
+ },
+ },
]
describe('RouterService', () => {
let service: RouterService
diff --git a/libs/ui/elements/src/lib/error/error.component.html b/libs/ui/elements/src/lib/error/error.component.html
index 0b0c302281..e06e2a1b2f 100644
--- a/libs/ui/elements/src/lib/error/error.component.html
+++ b/libs/ui/elements/src/lib/error/error.component.html
@@ -8,11 +8,11 @@
face
question_mark
+ >question_mark
+
question_mark
+ >question_mark
+
search.error.couldNotReachApi