mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
applied feedback
This commit is contained in:
@@ -56,7 +56,9 @@
|
|||||||
"header": "Statistics"
|
"header": "Statistics"
|
||||||
},
|
},
|
||||||
"login": "Log In",
|
"login": "Log In",
|
||||||
"logout": "Log Out"
|
"logout": "Log Out",
|
||||||
|
"language": "Language switch",
|
||||||
|
"search": "Search"
|
||||||
},
|
},
|
||||||
"pagination": {
|
"pagination": {
|
||||||
"results-per-page": "Results Per Page",
|
"results-per-page": "Results Per Page",
|
||||||
@@ -210,52 +212,84 @@
|
|||||||
"no-items": "No bitstream formats to show."
|
"no-items": "No bitstream formats to show."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"menu": {
|
||||||
|
"header": {
|
||||||
|
"admin": "Admin",
|
||||||
|
"image": {
|
||||||
|
"logo": "Repository logo"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"section": {
|
||||||
"section": {
|
"pin": "Pin sidebar",
|
||||||
|
"unpin": "Unpin sidebar",
|
||||||
|
"new": "New",
|
||||||
|
"new_community": "Community",
|
||||||
|
"new_collection": "Collection",
|
||||||
|
"new_item": "Item",
|
||||||
|
"new_item_version": "Item Version",
|
||||||
|
"edit": "Edit",
|
||||||
|
"edit_community": "Community",
|
||||||
|
"edit_collection": "Collection",
|
||||||
|
"edit_item": "Item",
|
||||||
|
"import": "Import",
|
||||||
|
"import_metadata": "Metadata",
|
||||||
|
"import_batch": "Batch Import (ZIP)",
|
||||||
|
"export": "Export",
|
||||||
|
"export_community": "Community",
|
||||||
|
"export_collection": "Collection",
|
||||||
|
"export_item": "Item",
|
||||||
|
"export_metadata": "Metadata",
|
||||||
|
"access_control": "Access Control",
|
||||||
|
"access_control_people": "People",
|
||||||
|
"access_control_groups": "Groups",
|
||||||
|
"access_control_authorizations": "Authorizations",
|
||||||
|
"find": "Find",
|
||||||
|
"find_items": "Items",
|
||||||
|
"find_withdrawn_items": "Withdrawn Items",
|
||||||
|
"find_private_items": "Private Items",
|
||||||
|
"registries": "Registries",
|
||||||
|
"registries_metadata": "Metadata",
|
||||||
|
"registries_format": "Format",
|
||||||
|
"curation_task": "Curation Task",
|
||||||
|
"statistics_task": "Statistics Task",
|
||||||
|
"control_panel": "Control Panel",
|
||||||
|
"browse_global": "All of DSpace",
|
||||||
|
"browse_global_communities_and_collections": "Communities & Collections",
|
||||||
|
"browse_global_by_issue_date": "By Issue Date",
|
||||||
|
"browse_global_by_author": "By Author",
|
||||||
|
"browse_global_by_title": "By Title",
|
||||||
|
"statistics": "Statistics",
|
||||||
|
"browse_community": "This Community",
|
||||||
|
"browse_community_by_issue_date": "By Issue Date",
|
||||||
|
"browse_community_by_author": "By Author",
|
||||||
|
"browse_community_by_title": "By Title",
|
||||||
|
"icon": {
|
||||||
"pin": "Pin sidebar",
|
"pin": "Pin sidebar",
|
||||||
"unpin": "Unpin sidebar",
|
"unpin": "Unpin sidebar",
|
||||||
"new": "New",
|
"new": "New menu section",
|
||||||
"new_community": "Community",
|
"edit": "Edit menu section",
|
||||||
"new_collection": "Collection",
|
"import": "Import menu section",
|
||||||
"new_item": "Item",
|
"export": "Export menu section",
|
||||||
"new_item_version": "Item Version",
|
"access_control": "Access Control menu section",
|
||||||
"edit": "Edit",
|
"find": "Find menu section",
|
||||||
"edit_community": "Community",
|
"registries": "Registries menu section",
|
||||||
"edit_collection": "Collection",
|
"curation_task": "Curation Task menu section",
|
||||||
"edit_item": "Item",
|
"statistics_task": "Statistics Task menu section",
|
||||||
"import": "Import",
|
"control_panel": "Control Panel menu section"
|
||||||
"import_metadata": "Metadata",
|
},
|
||||||
"import_batch": "Batch Import (ZIP)",
|
"toggle": {
|
||||||
"export": "Export",
|
"new": "Toggle New section",
|
||||||
"export_community": "Community",
|
"edit": "Toggle Edit section",
|
||||||
"export_collection": "Collection",
|
"import": "Toggle Import section",
|
||||||
"export_item": "Item",
|
"export": "Toggle Export section",
|
||||||
"export_metadata": "Metadata",
|
"access_control": "Toggle Access Control section",
|
||||||
"access_control": "Access Control",
|
"find": "Toggle Find section",
|
||||||
"access_control_people": "People",
|
"registries": "Toggle Registries section",
|
||||||
"access_control_groups": "Groups",
|
"curation_task": "Toggle Curation Task section",
|
||||||
"access_control_authorizations": "Authorizations",
|
"statistics_task": "Toggle Statistics Task section",
|
||||||
"find": "Find",
|
"control_panel": "Toggle Control Panel section"
|
||||||
"find_items": "Items",
|
|
||||||
"find_withdrawn_items": "Withdrawn Items",
|
|
||||||
"find_private_items": "Private Items",
|
|
||||||
"registries": "Registries",
|
|
||||||
"registries_metadata": "Metadata",
|
|
||||||
"registries_format": "Format",
|
|
||||||
"curation_task": "Curation Task",
|
|
||||||
"statistics_task": "Statistics Task",
|
|
||||||
"control_panel": "Control Panel",
|
|
||||||
"browse_global": "All of DSpace",
|
|
||||||
"browse_global_communities_and_collections": "Communities & Collections",
|
|
||||||
"browse_global_by_issue_date": "By Issue Date",
|
|
||||||
"browse_global_by_author": "By Author",
|
|
||||||
"browse_global_by_title": "By Title",
|
|
||||||
"statistics": "Statistics",
|
|
||||||
"browse_community": "This Community",
|
|
||||||
"browse_community_by_issue_date": "By Issue Date",
|
|
||||||
"browse_community_by_author": "By Author",
|
|
||||||
"browse_community_by_title": "By Title"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -329,5 +363,8 @@
|
|||||||
"errors": {
|
"errors": {
|
||||||
"invalid-user": "Invalid email address or password."
|
"invalid-user": "Invalid email address or password."
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"chips": {
|
||||||
|
"remove": "Remove chip"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -11,12 +11,14 @@
|
|||||||
<li class="admin-menu-header sidebar-section">
|
<li class="admin-menu-header sidebar-section">
|
||||||
<a class="shortcut-icon navbar-brand mr-0" href="#">
|
<a class="shortcut-icon navbar-brand mr-0" href="#">
|
||||||
<span class="logo-wrapper">
|
<span class="logo-wrapper">
|
||||||
<img class="admin-logo" src="assets/images/dspace-logo-mini.svg">
|
<img class="admin-logo" src="assets/images/dspace-logo-mini.svg"
|
||||||
|
[alt]="('menu.header.image.logo') | translate">
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="sidebar-collapsible">
|
<div class="sidebar-collapsible">
|
||||||
<a class="navbar-brand mr-0" href="#">
|
<a class="navbar-brand mr-0" href="#">
|
||||||
<h4 class="section-header-text mb-0">Admin</h4>
|
<h4 class="section-header-text mb-0">{{'menu.header.admin' |
|
||||||
|
translate}}</h4>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -32,15 +34,17 @@
|
|||||||
<a class="nav-item nav-link shortcut-icon"
|
<a class="nav-item nav-link shortcut-icon"
|
||||||
href="#"
|
href="#"
|
||||||
(click)="toggle($event)">
|
(click)="toggle($event)">
|
||||||
<i class="fas fa-fw"
|
<i *ngIf="(menuCollapsed | async)" class="fas fa-fw fa-angle-double-right"
|
||||||
[ngClass]="{'fa-angle-double-right': (menuCollapsed | async), 'fa-angle-double-left': !(menuCollapsed | async)}"></i>
|
[title]="'menu.section.icon.pin' | translate"></i>
|
||||||
|
<i *ngIf="!(menuCollapsed | async)" class="fas fa-fw fa-angle-double-left"
|
||||||
|
[title]="'menu.section.icon.unpin' | translate"></i>
|
||||||
</a>
|
</a>
|
||||||
<div class="sidebar-collapsible">
|
<div class="sidebar-collapsible">
|
||||||
<a class="nav-item nav-link sidebar-section"
|
<a class="nav-item nav-link sidebar-section"
|
||||||
href="#"
|
href="#"
|
||||||
(click)="toggle($event)">
|
(click)="toggle($event)">
|
||||||
<span *ngIf="menuCollapsed | async" class="section-header-text">{{'admin.sidebar.section.pin' | translate }}</span>
|
<span *ngIf="menuCollapsed | async" class="section-header-text">{{'menu.section.pin' | translate }}</span>
|
||||||
<span *ngIf="!(menuCollapsed | async)" class="section-header-text">{{'admin.sidebar.section.unpin' | translate }}</span>
|
<span *ngIf="!(menuCollapsed | async)" class="section-header-text">{{'menu.section.unpin' | translate }}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -93,7 +93,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.TEXT,
|
type: MenuItemType.TEXT,
|
||||||
text: 'admin.sidebar.section.new'
|
text: 'menu.section.new'
|
||||||
} as TextMenuItemModel,
|
} as TextMenuItemModel,
|
||||||
icon: 'plus-circle',
|
icon: 'plus-circle',
|
||||||
index: 0
|
index: 0
|
||||||
@@ -105,7 +105,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.new_community',
|
text: 'menu.section.new_community',
|
||||||
link: '/communities/submission'
|
link: '/communities/submission'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -116,7 +116,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.new_collection',
|
text: 'menu.section.new_collection',
|
||||||
link: '/collections/submission'
|
link: '/collections/submission'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -127,7 +127,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.new_item',
|
text: 'menu.section.new_item',
|
||||||
link: '/items/submission'
|
link: '/items/submission'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -138,7 +138,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.new_item_version',
|
text: 'menu.section.new_item_version',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -150,7 +150,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.TEXT,
|
type: MenuItemType.TEXT,
|
||||||
text: 'admin.sidebar.section.edit'
|
text: 'menu.section.edit'
|
||||||
} as TextMenuItemModel,
|
} as TextMenuItemModel,
|
||||||
icon: 'pencil-alt',
|
icon: 'pencil-alt',
|
||||||
index: 1
|
index: 1
|
||||||
@@ -162,7 +162,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.edit_community',
|
text: 'menu.section.edit_community',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -173,7 +173,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.edit_collection',
|
text: 'menu.section.edit_collection',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -184,7 +184,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.edit_item',
|
text: 'menu.section.edit_item',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -196,7 +196,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.TEXT,
|
type: MenuItemType.TEXT,
|
||||||
text: 'admin.sidebar.section.import'
|
text: 'menu.section.import'
|
||||||
} as TextMenuItemModel,
|
} as TextMenuItemModel,
|
||||||
icon: 'sign-in-alt',
|
icon: 'sign-in-alt',
|
||||||
index: 2
|
index: 2
|
||||||
@@ -208,7 +208,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.import_metadata',
|
text: 'menu.section.import_metadata',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -219,7 +219,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.import_batch',
|
text: 'menu.section.import_batch',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -231,7 +231,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.TEXT,
|
type: MenuItemType.TEXT,
|
||||||
text: 'admin.sidebar.section.export'
|
text: 'menu.section.export'
|
||||||
} as TextMenuItemModel,
|
} as TextMenuItemModel,
|
||||||
icon: 'sign-out-alt',
|
icon: 'sign-out-alt',
|
||||||
index: 3
|
index: 3
|
||||||
@@ -243,7 +243,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.export_community',
|
text: 'menu.section.export_community',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -254,7 +254,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.export_collection',
|
text: 'menu.section.export_collection',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -265,7 +265,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.export_item',
|
text: 'menu.section.export_item',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
}, {
|
}, {
|
||||||
@@ -275,7 +275,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.export_metadata',
|
text: 'menu.section.export_metadata',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -287,7 +287,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.TEXT,
|
type: MenuItemType.TEXT,
|
||||||
text: 'admin.sidebar.section.access_control'
|
text: 'menu.section.access_control'
|
||||||
} as TextMenuItemModel,
|
} as TextMenuItemModel,
|
||||||
icon: 'key',
|
icon: 'key',
|
||||||
index: 4
|
index: 4
|
||||||
@@ -299,7 +299,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.access_control_people',
|
text: 'menu.section.access_control_people',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -310,7 +310,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.access_control_groups',
|
text: 'menu.section.access_control_groups',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -321,7 +321,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.access_control_authorizations',
|
text: 'menu.section.access_control_authorizations',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -333,7 +333,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.TEXT,
|
type: MenuItemType.TEXT,
|
||||||
text: 'admin.sidebar.section.find'
|
text: 'menu.section.find'
|
||||||
} as TextMenuItemModel,
|
} as TextMenuItemModel,
|
||||||
icon: 'search',
|
icon: 'search',
|
||||||
index: 5
|
index: 5
|
||||||
@@ -345,7 +345,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.find_items',
|
text: 'menu.section.find_items',
|
||||||
link: '/search'
|
link: '/search'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -356,7 +356,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.find_withdrawn_items',
|
text: 'menu.section.find_withdrawn_items',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -367,7 +367,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.find_private_items',
|
text: 'menu.section.find_private_items',
|
||||||
link: '/admin/items'
|
link: '/admin/items'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -379,7 +379,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.TEXT,
|
type: MenuItemType.TEXT,
|
||||||
text: 'admin.sidebar.section.registries'
|
text: 'menu.section.registries'
|
||||||
} as TextMenuItemModel,
|
} as TextMenuItemModel,
|
||||||
icon: 'list',
|
icon: 'list',
|
||||||
index: 6
|
index: 6
|
||||||
@@ -391,7 +391,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.registries_metadata',
|
text: 'menu.section.registries_metadata',
|
||||||
link: 'admin/registries/metadata'
|
link: 'admin/registries/metadata'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -402,7 +402,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.registries_format',
|
text: 'menu.section.registries_format',
|
||||||
link: 'admin/registries/bitstream-formats'
|
link: 'admin/registries/bitstream-formats'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -414,7 +414,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.curation_task',
|
text: 'menu.section.curation_task',
|
||||||
link: '/curation'
|
link: '/curation'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
icon: 'filter',
|
icon: 'filter',
|
||||||
@@ -428,7 +428,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.statistics_task',
|
text: 'menu.section.statistics_task',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
icon: 'chart-bar',
|
icon: 'chart-bar',
|
||||||
@@ -442,7 +442,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.control_panel',
|
text: 'menu.section.control_panel',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
icon: 'cogs',
|
icon: 'cogs',
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
params: {endColor: (sidebarActiveBg | async)}}">
|
params: {endColor: (sidebarActiveBg | async)}}">
|
||||||
<div class="icon-wrapper">
|
<div class="icon-wrapper">
|
||||||
<a class="nav-item nav-link shortcut-icon" (click)="toggleSection($event)" href="#">
|
<a class="nav-item nav-link shortcut-icon" (click)="toggleSection($event)" href="#">
|
||||||
<i class="fas fa-{{section.icon}} fa-fw"></i>
|
<i class="fas fa-{{section.icon}} fa-fw" [title]="('menu.section.icon.' + section.id) | translate"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="sidebar-collapsible">
|
<div class="sidebar-collapsible">
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
*ngComponentOutlet="itemComponents.get(section.id); injector: itemInjectors.get(section.id);"></ng-container>
|
*ngComponentOutlet="itemComponents.get(section.id); injector: itemInjectors.get(section.id);"></ng-container>
|
||||||
</span>
|
</span>
|
||||||
<i class="fas fa-chevron-right fa-pull-right"
|
<i class="fas fa-chevron-right fa-pull-right"
|
||||||
[@rotate]="(expanded | async) ? 'expanded' : 'collapsed'"></i>
|
[@rotate]="(expanded | async) ? 'expanded' : 'collapsed'" [title]="('menu.section.toggle.' + section.id) | translate"></i>
|
||||||
</a>
|
</a>
|
||||||
<ul class="sidebar-sub-level-items list-unstyled" @slide *ngIf="(expanded | async)">
|
<ul class="sidebar-sub-level-items list-unstyled" @slide *ngIf="(expanded | async)">
|
||||||
<li *ngFor="let subSection of (subSections | async)">
|
<li *ngFor="let subSection of (subSections | async)">
|
||||||
|
@@ -9,6 +9,7 @@ import { of as observableOf } from 'rxjs';
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ExpandableAdminSidebarSectionComponent', () => {
|
describe('ExpandableAdminSidebarSectionComponent', () => {
|
||||||
let component: ExpandableAdminSidebarSectionComponent;
|
let component: ExpandableAdminSidebarSectionComponent;
|
||||||
@@ -17,7 +18,7 @@ describe('ExpandableAdminSidebarSectionComponent', () => {
|
|||||||
const iconString = 'test';
|
const iconString = 'test';
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [NoopAnimationsModule],
|
imports: [NoopAnimationsModule, TranslateModule.forRoot()],
|
||||||
declarations: [ExpandableAdminSidebarSectionComponent, TestComponent],
|
declarations: [ExpandableAdminSidebarSectionComponent, TestComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: 'sectionDataProvider', useValue: {icon: iconString} },
|
{ provide: 'sectionDataProvider', useValue: {icon: iconString} },
|
||||||
|
@@ -7,6 +7,9 @@ import { Subscription } from 'rxjs/internal/Subscription';
|
|||||||
import { MenuService } from '../shared/menu/menu.service';
|
import { MenuService } from '../shared/menu/menu.service';
|
||||||
import { MenuID } from '../shared/menu/initial-menus-state';
|
import { MenuID } from '../shared/menu/initial-menus-state';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This component represents a wrapper for the horizontal navbar and the header
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-header-navbar-wrapper',
|
selector: 'ds-header-navbar-wrapper',
|
||||||
styleUrls: ['header-navbar-wrapper.component.scss'],
|
styleUrls: ['header-navbar-wrapper.component.scss'],
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav class="navbar navbar-light navbar-expand-md float-right px-0">
|
<nav class="navbar navbar-light navbar-expand-md float-right px-0">
|
||||||
<a href="#" class="px-1"><i class="fas fa-search fa-lg fa-fw"></i></a>
|
<a href="#" class="px-1"><i class="fas fa-search fa-lg fa-fw" [title]="'nav.search' | translate"></i></a>
|
||||||
<a href="#" class="px-1"><i class="fas fa-globe-asia fa-lg fa-fw"></i></a>
|
<a href="#" class="px-1"><i class="fas fa-globe-asia fa-lg fa-fw" [title]="'nav.language' | translate"></i></a>
|
||||||
<ds-auth-nav-menu></ds-auth-nav-menu>
|
<ds-auth-nav-menu></ds-auth-nav-menu>
|
||||||
<div class="pl-2">
|
<div class="pl-2">
|
||||||
<button class="navbar-toggler" type="button" (click)="toggleNavbar()"
|
<button class="navbar-toggler" type="button" (click)="toggleNavbar()"
|
||||||
|
@@ -47,7 +47,7 @@ export class NavbarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.TEXT,
|
type: MenuItemType.TEXT,
|
||||||
text: 'admin.sidebar.section.browse_global'
|
text: 'menu.section.browse_global'
|
||||||
} as TextMenuItemModel,
|
} as TextMenuItemModel,
|
||||||
index: 0
|
index: 0
|
||||||
},
|
},
|
||||||
@@ -58,7 +58,7 @@ export class NavbarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.browse_global_communities_and_collections',
|
text: 'menu.section.browse_global_communities_and_collections',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -69,7 +69,7 @@ export class NavbarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.browse_global_by_issue_date',
|
text: 'menu.section.browse_global_by_issue_date',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
}, {
|
}, {
|
||||||
@@ -79,7 +79,7 @@ export class NavbarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.browse_global_by_title',
|
text: 'menu.section.browse_global_by_title',
|
||||||
link: '/browse/title'
|
link: '/browse/title'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -90,7 +90,7 @@ export class NavbarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.browse_global_by_author',
|
text: 'menu.section.browse_global_by_author',
|
||||||
link: '/browse/author'
|
link: '/browse/author'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
},
|
},
|
||||||
@@ -102,7 +102,7 @@ export class NavbarComponent extends MenuComponent implements OnInit {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: MenuItemType.LINK,
|
type: MenuItemType.LINK,
|
||||||
text: 'admin.sidebar.section.statistics',
|
text: 'menu.section.statistics',
|
||||||
link: '#'
|
link: '#'
|
||||||
} as LinkMenuItemModel,
|
} as LinkMenuItemModel,
|
||||||
index: 2
|
index: 2
|
||||||
|
@@ -39,7 +39,7 @@ const effects = [
|
|||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This module handles all components and pipes that are necessary for the search page
|
* This module handles all components and pipes that are necessary for the horizontal navigation bar
|
||||||
*/
|
*/
|
||||||
export class NavbarModule {
|
export class NavbarModule {
|
||||||
}
|
}
|
||||||
|
@@ -12,8 +12,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li *ngIf="(isAuthenticated | async) && !(isXsOrSm$ | async) && (showAuth | async)" class="nav-item">
|
<li *ngIf="(isAuthenticated | async) && !(isXsOrSm$ | async) && (showAuth | async)" class="nav-item">
|
||||||
<div ngbDropdown placement="bottom-right" class="d-inline-block" @fadeInOut>
|
<div ngbDropdown placement="bottom-right" class="d-inline-block" @fadeInOut>
|
||||||
<!--<a href="#" id="dropdownUser" (click)="$event.preventDefault()" ngbDropdownToggle><i class="fas fa-user fa-fw" aria-hidden="true"></i>Hello {{(user | async).name}}<span class="caret"></span></a>-->
|
<a href="#" id="dropdownUser" (click)="$event.preventDefault()" class="px-1" ngbDropdownToggle><i class="fas fa-user-circle fa-lg fa-fw" [title]="'nav.logout' | translate"></i></a>
|
||||||
<a href="#" id="dropdownUser" (click)="$event.preventDefault()" class="px-1" ngbDropdownToggle><i class="fas fa-user-circle fa-lg fa-fw"></i></a>
|
|
||||||
<ul id="logoutDropdownMenu" ngbDropdownMenu aria-labelledby="dropdownUser">
|
<ul id="logoutDropdownMenu" ngbDropdownMenu aria-labelledby="dropdownUser">
|
||||||
<li class="dropdown-item">{{(user | async).name}}</li>
|
<li class="dropdown-item">{{(user | async).name}}</li>
|
||||||
<li class="dropdown-item"><ds-log-out></ds-log-out></li>
|
<li class="dropdown-item"><ds-log-out></ds-log-out></li>
|
||||||
@@ -21,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li *ngIf="(isAuthenticated | async) && (isXsOrSm$ | async)" class="nav-item">
|
<li *ngIf="(isAuthenticated | async) && (isXsOrSm$ | async)" class="nav-item">
|
||||||
<a id="logoutLink" routerLink="/logout" routerLinkActive="active" class="px-1"><i class="fas fa-user-circle fa-lg fa-fw"></i><span class="sr-only">(current)</span></a>
|
<a id="logoutLink" routerLink="/logout" routerLinkActive="active" class="px-1"><i class="fas fa-user-circle fa-lg fa-fw" [title]="'nav.logout' | translate"></i><span class="sr-only">(current)</span></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
(mouseover)="showTooltip(t, i, icon.metadata)"
|
(mouseover)="showTooltip(t, i, icon.metadata)"
|
||||||
(mouseout)="t.close()"></i>
|
(mouseout)="t.close()"></i>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<p class="chip-label text-truncate d-table-cell">{{c.display}}</p><i class="fas fa-times ml-2" (click)="removeChips($event, i)"></i>
|
<p class="chip-label text-truncate d-table-cell">{{c.display}}</p><i class="fas fa-times ml-2" (click)="removeChips($event, i)" [title]="'chips.remove' | translate"></i>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@@ -10,6 +10,7 @@ import { SortablejsModule } from 'angular-sortablejs';
|
|||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { FormFieldMetadataValueObject } from '../form/builder/models/form-field-metadata-value.model';
|
import { FormFieldMetadataValueObject } from '../form/builder/models/form-field-metadata-value.model';
|
||||||
import { createTestComponent, hasClass } from '../testing/utils';
|
import { createTestComponent, hasClass } from '../testing/utils';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
describe('ChipsComponent test suite', () => {
|
describe('ChipsComponent test suite', () => {
|
||||||
|
|
||||||
@@ -27,6 +28,7 @@ describe('ChipsComponent test suite', () => {
|
|||||||
imports: [
|
imports: [
|
||||||
NgbModule.forRoot(),
|
NgbModule.forRoot(),
|
||||||
SortablejsModule.forRoot({animation: 150}),
|
SortablejsModule.forRoot({animation: 150}),
|
||||||
|
TranslateModule.forRoot()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ChipsComponent,
|
ChipsComponent,
|
||||||
|
@@ -54,7 +54,7 @@ describe('menusReducer', () => {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: 0,
|
type: 0,
|
||||||
text: 'admin.sidebar.section.new'
|
text: 'menu.section.new'
|
||||||
},
|
},
|
||||||
icon: 'plus-circle',
|
icon: 'plus-circle',
|
||||||
index: 0
|
index: 0
|
||||||
@@ -66,7 +66,7 @@ describe('menusReducer', () => {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: 1,
|
type: 1,
|
||||||
text: 'admin.sidebar.section.new_item',
|
text: 'menu.section.new_item',
|
||||||
link: '/items/submission'
|
link: '/items/submission'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -77,7 +77,7 @@ describe('menusReducer', () => {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: 1,
|
type: 1,
|
||||||
text: 'admin.sidebar.section.new_community',
|
text: 'menu.section.new_community',
|
||||||
link: '/communities/submission'
|
link: '/communities/submission'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -87,7 +87,7 @@ describe('menusReducer', () => {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: 0,
|
type: 0,
|
||||||
text: 'admin.sidebar.section.access_control'
|
text: 'menu.section.access_control'
|
||||||
},
|
},
|
||||||
icon: 'key',
|
icon: 'key',
|
||||||
index: 4
|
index: 4
|
||||||
@@ -99,7 +99,7 @@ describe('menusReducer', () => {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: 1,
|
type: 1,
|
||||||
text: 'admin.sidebar.section.access_control_people',
|
text: 'menu.section.access_control_people',
|
||||||
link: '#'
|
link: '#'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -110,7 +110,7 @@ describe('menusReducer', () => {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: 1,
|
type: 1,
|
||||||
text: 'admin.sidebar.section.access_control_groups',
|
text: 'menu.section.access_control_groups',
|
||||||
link: '#'
|
link: '#'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -121,7 +121,7 @@ describe('menusReducer', () => {
|
|||||||
visible: true,
|
visible: true,
|
||||||
model: {
|
model: {
|
||||||
type: 1,
|
type: 1,
|
||||||
text: 'admin.sidebar.section.new_collection',
|
text: 'menu.section.new_collection',
|
||||||
link: '/collections/submission'
|
link: '/collections/submission'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user