File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import { NotificationsMenuProvider } from './shared/menu/providers/notifications
3131import { ProcessesMenuProvider } from './shared/menu/providers/processes.menu' ;
3232import { RegistriesMenuProvider } from './shared/menu/providers/registries.menu' ;
3333import { StatisticsMenuProvider } from './shared/menu/providers/statistics.menu' ;
34+ import { SubmissionsMenuProvider } from './shared/menu/providers/submissions.menu' ;
3435import { SystemWideAlertMenuProvider } from './shared/menu/providers/system-wide-alert.menu' ;
3536import { WithdrawnReinstateItemMenuProvider } from './shared/menu/providers/withdrawn-reinstate-item.menu' ;
3637import { WorkflowMenuProvider } from './shared/menu/providers/workflow.menu' ;
@@ -60,6 +61,8 @@ export const MENUS = buildMenuStructure({
6061 [ MenuID . ADMIN ] : [
6162 NewMenuProvider ,
6263 EditMenuProvider ,
64+ // CLARIN/LINDAT: "Submissions" link to MyDSpace (ported from the v7 fork)
65+ SubmissionsMenuProvider ,
6366 ImportMenuProvider ,
6467 ExportMenuProvider ,
6568 NotificationsMenuProvider ,
Original file line number Diff line number Diff line change 1+ /**
2+ * The contents of this file are subject to the license and copyright
3+ * detailed in the LICENSE and NOTICE files at the root of the source
4+ * tree and available online at
5+ *
6+ * http://www.dspace.org/license/
7+ */
8+
9+ import { Injectable } from '@angular/core' ;
10+ import {
11+ Observable ,
12+ of ,
13+ } from 'rxjs' ;
14+
15+ import { MenuItemType } from '../menu-item-type.model' ;
16+ import {
17+ AbstractMenuProvider ,
18+ PartialMenuSection ,
19+ } from '../menu-provider.model' ;
20+
21+ /**
22+ * CLARIN/LINDAT: "Submissions" entry in the admin sidebar (ported from the v7 fork's menu.resolver.ts).
23+ * Links to the user's MyDSpace page and is always visible, matching the original fork behaviour.
24+ */
25+ @Injectable ( )
26+ export class SubmissionsMenuProvider extends AbstractMenuProvider {
27+
28+ public getSections ( ) : Observable < PartialMenuSection [ ] > {
29+ return of ( [
30+ {
31+ visible : true ,
32+ model : {
33+ type : MenuItemType . LINK ,
34+ text : 'menu.section.submissions' ,
35+ link : '/mydspace' ,
36+ } ,
37+ icon : 'upload' ,
38+ } ,
39+ ] as PartialMenuSection [ ] ) ;
40+ }
41+ }
You can’t perform that action at this time.
0 commit comments