diff --git a/src/app/app.menus.ts b/src/app/app.menus.ts index 46dba503a9..89e872984a 100644 --- a/src/app/app.menus.ts +++ b/src/app/app.menus.ts @@ -11,6 +11,7 @@ import { MenuRoute } from './shared/menu/menu-route.model'; import { AccessControlMenuProvider } from './shared/menu/providers/access-control.menu'; import { AdminSearchMenuProvider } from './shared/menu/providers/admin-search.menu'; import { BrowseMenuProvider } from './shared/menu/providers/browse.menu'; +import { CoarNotifyMenuProvider } from './shared/menu/providers/coar-notify.menu'; import { SubscribeMenuProvider } from './shared/menu/providers/comcol-subscribe.menu'; import { CommunityListMenuProvider } from './shared/menu/providers/community-list.menu'; import { CreateReportMenuProvider } from './shared/menu/providers/create-report.menu'; @@ -25,12 +26,29 @@ import { ClaimMenuProvider } from './shared/menu/providers/item-claim.menu'; import { OrcidMenuProvider } from './shared/menu/providers/item-orcid.menu'; import { VersioningMenuProvider } from './shared/menu/providers/item-versioning.menu'; import { NewMenuProvider } from './shared/menu/providers/new.menu'; +import { NotificationsMenuProvider } from './shared/menu/providers/notifications.menu'; import { ProcessesMenuProvider } from './shared/menu/providers/processes.menu'; import { RegistriesMenuProvider } from './shared/menu/providers/registries.menu'; import { StatisticsMenuProvider } from './shared/menu/providers/statistics.menu'; import { SystemWideAlertMenuProvider } from './shared/menu/providers/system-wide-alert.menu'; import { WorkflowMenuProvider } from './shared/menu/providers/workflow.menu'; +/** + * Represents and builds the menu structure for the three available menus (public navbar, admin sidebar and the dso edit + * menus). + * The structure consists of a list of menu IDs with each of them having a list of providers that will create the + * sections to be part of the menu matching the ID. + * + * The following menu groups are present in this structure: + * - `MenuID.PUBLIC`: Defines menus accessible by the public in the navigation bar. + * - `MenuID.ADMIN`: Defines menus for administrative users in the sidebar. + * - `MenuID.DSO_EDIT`: Defines dynamic menu options for DSpace Objects that will be present on the DSpace Object's page. + * + * To add more menu sections to a menu (public navbar, admin sidebar or the dso edit menus), + * a new provider can be added to the list with the corresponding menu ID. + * + * The configuration supports route-specific menu providers and hierarchically structured menu options. + */ export const MENUS = buildMenuStructure({ [MenuID.PUBLIC]: [ CommunityListMenuProvider, @@ -42,15 +60,17 @@ export const MENUS = buildMenuStructure({ EditMenuProvider, ImportMenuProvider, ExportMenuProvider, + NotificationsMenuProvider, AccessControlMenuProvider, - CreateReportMenuProvider, AdminSearchMenuProvider, + CreateReportMenuProvider, RegistriesMenuProvider, CurationMenuProvider, ProcessesMenuProvider, WorkflowMenuProvider, HealthMenuProvider, SystemWideAlertMenuProvider, + CoarNotifyMenuProvider, ], [MenuID.DSO_EDIT]: [ DsoOptionMenuProvider.withSubs([ diff --git a/src/app/shared/dso-page/dso-edit-menu/dso-edit-expandable-menu-section/dso-edit-menu-expandable-section.component.html b/src/app/shared/dso-page/dso-edit-menu/dso-edit-expandable-menu-section/dso-edit-menu-expandable-section.component.html index 9de5214087..83dd66a346 100644 --- a/src/app/shared/dso-page/dso-edit-menu/dso-edit-expandable-menu-section/dso-edit-menu-expandable-section.component.html +++ b/src/app/shared/dso-page/dso-edit-menu/dso-edit-expandable-menu-section/dso-edit-menu-expandable-section.component.html @@ -2,7 +2,7 @@