Skip to content

Commit

Permalink
Merged in DSC-763 (pull request DSpace#332)
Browse files Browse the repository at this point in the history
[DSC-763] [CST-6699] added other workspace items option
  • Loading branch information
Davide Negretti authored and corrad82-4s committed Dec 30, 2022
2 parents effcf07 + ce7032a commit 3ac211b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/core/shared/context.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export enum Context {
Search = 'search',
Workflow = 'workflow',
Workspace = 'workspace',
OtherWorkspace = 'otherworkspace',
AdminMenu = 'adminMenu',
EntitySearchModalWithNameVariants = 'EntitySearchModalWithNameVariants',
EntitySearchModal = 'EntitySearchModal',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export enum MyDSpaceConfigurationValueType {
Workspace = 'workspace',
OtherWorkspace = 'otherworkspace',
Workflow = 'workflow'
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ describe('MyDSpaceConfigurationService', () => {

expect(list$).toBeObservable(cold('(b|)', {
b: [
MyDSpaceConfigurationValueType.Workspace
MyDSpaceConfigurationValueType.Workspace,
MyDSpaceConfigurationValueType.OtherWorkspace
]
}));
});
Expand Down Expand Up @@ -231,6 +232,7 @@ describe('MyDSpaceConfigurationService', () => {
expect(list$).toBeObservable(cold('(b|)', {
b: [
MyDSpaceConfigurationValueType.Workspace,
MyDSpaceConfigurationValueType.OtherWorkspace,
MyDSpaceConfigurationValueType.Workflow
]
}));
Expand Down
2 changes: 2 additions & 0 deletions src/app/my-dspace-page/my-dspace-configuration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { Context } from '../core/shared/context.model';

export const MyDSpaceConfigurationToContextMap = new Map([
[MyDSpaceConfigurationValueType.Workspace, Context.Workspace],
[MyDSpaceConfigurationValueType.OtherWorkspace, Context.OtherWorkspace],
[MyDSpaceConfigurationValueType.Workflow, Context.Workflow]
]);

Expand Down Expand Up @@ -107,6 +108,7 @@ export class MyDSpaceConfigurationService extends SearchConfigurationService {
const availableConf: MyDSpaceConfigurationValueType[] = [];
if (isSubmitter) {
availableConf.push(MyDSpaceConfigurationValueType.Workspace);
availableConf.push(MyDSpaceConfigurationValueType.OtherWorkspace);
}
if (isController || isAdmin) {
availableConf.push(MyDSpaceConfigurationValueType.Workflow);
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3820,6 +3820,8 @@

"mydspace.show.workspace": "Your Submissions",

"mydspace.show.otherworkspace": "Other Workspace Submissions",

"mydspace.status.archived": "Archived",

"mydspace.status.validation": "Validation",
Expand Down Expand Up @@ -6299,6 +6301,8 @@



"otherworkspace.search.results.head": "Workspace submissions",

"workspace.search.results.head": "Your submissions",

"workflowAdmin.search.results.head": "Administer Workflow",
Expand Down

0 comments on commit 3ac211b

Please sign in to comment.