From bfc582cb9bdf08d6dd94f869ae37320003a1e667 Mon Sep 17 00:00:00 2001 From: Vincenzo Mecca Date: Wed, 25 Oct 2023 16:38:25 +0200 Subject: [PATCH 1/2] [DSC-1227] Fixes statistics_site disappearing thru home link --- src/app/home-page/home-page-routing.module.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/app/home-page/home-page-routing.module.ts b/src/app/home-page/home-page-routing.module.ts index 93ce488109f..ec76bf4ba83 100644 --- a/src/app/home-page/home-page-routing.module.ts +++ b/src/app/home-page/home-page-routing.module.ts @@ -2,9 +2,7 @@ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { HomePageResolver } from './home-page.resolver'; -import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model'; import { ThemedHomePageComponent } from './themed-home-page.component'; -import { MenuItemType } from '../shared/menu/menu-item-type.model'; @NgModule({ imports: [ @@ -16,17 +14,7 @@ import { MenuItemType } from '../shared/menu/menu-item-type.model'; data: { title: 'home.title', menu: { - public: [{ - id: 'statistics_site', - active: true, - visible: false, - index: 2, - model: { - type: MenuItemType.LINK, - text: 'menu.section.statistics', - link: 'statistics', - } as LinkMenuItemModel, - }], + public: [], }, showSocialButtons: true }, resolve: { From 4033f721721fadbcc618fed3efe944ef94e89fd6 Mon Sep 17 00:00:00 2001 From: Vincenzo Mecca Date: Mon, 13 Nov 2023 12:38:38 +0100 Subject: [PATCH 2/2] [DSC-1227] Fixes test failures --- src/app/explore-page/explore-page.component.spec.ts | 3 ++- .../top-section/top-section.component.spec.ts | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/explore-page/explore-page.component.spec.ts b/src/app/explore-page/explore-page.component.spec.ts index 864b327ec89..a70e4787b62 100644 --- a/src/app/explore-page/explore-page.component.spec.ts +++ b/src/app/explore-page/explore-page.component.spec.ts @@ -35,7 +35,8 @@ describe('ExploreComponent', () => { order: 'desc', sortField: 'dc.date.accessioned', numberOfItems: 5, - titleKey: 'lastPublications' + titleKey: 'lastPublications', + showThumbnails: false, }; const searchComponent: SearchSection = { diff --git a/src/app/shared/explore/section-component/top-section/top-section.component.spec.ts b/src/app/shared/explore/section-component/top-section/top-section.component.spec.ts index 50d31e5089d..a77ceb6bb07 100644 --- a/src/app/shared/explore/section-component/top-section/top-section.component.spec.ts +++ b/src/app/shared/explore/section-component/top-section/top-section.component.spec.ts @@ -82,7 +82,8 @@ describe('TopSectionComponent', () => { order: 'desc', sortField: 'dc.date.accessioned', numberOfItems: 5, - titleKey: undefined + titleKey: undefined, + showThumbnails: false, }; fixture.detectChanges(); @@ -121,7 +122,8 @@ describe('TopSectionComponent', () => { order: 'desc', sortField: 'dc.date.foo', numberOfItems: 5, - titleKey: 'lastPublications' + titleKey: 'lastPublications', + showThumbnails: false, }; fixture.detectChanges();