mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
98376: Fixed collection-roles page for collections with single workflowGroup
This commit is contained in:
@@ -6,6 +6,7 @@ import { RemoteData } from '../../../core/data/remote-data';
|
||||
import { Collection } from '../../../core/shared/collection.model';
|
||||
import { getRemoteDataPayload, getFirstSucceededRemoteData } from '../../../core/shared/operators';
|
||||
import { HALLink } from '../../../core/shared/hal-link.model';
|
||||
import { hasValue } from '../../../shared/empty.util';
|
||||
|
||||
/**
|
||||
* Component for managing a collection's roles
|
||||
@@ -45,7 +46,12 @@ export class CollectionRolesComponent implements OnInit {
|
||||
);
|
||||
|
||||
this.comcolRoles$ = this.collection$.pipe(
|
||||
map((collection) => [
|
||||
map((collection) => {
|
||||
let workflowGroups: HALLink[] | HALLink = hasValue(collection._links.workflowGroups) ? collection._links.workflowGroups : [];
|
||||
if (!Array.isArray(workflowGroups)) {
|
||||
workflowGroups = [workflowGroups];
|
||||
}
|
||||
return [
|
||||
{
|
||||
name: 'collection-admin',
|
||||
href: collection._links.adminGroup.href,
|
||||
@@ -62,8 +68,9 @@ export class CollectionRolesComponent implements OnInit {
|
||||
name: 'bitstream_read',
|
||||
href: collection._links.bitstreamReadGroup.href,
|
||||
},
|
||||
...(collection._links.workflowGroups ? collection._links.workflowGroups : []),
|
||||
]),
|
||||
...workflowGroups,
|
||||
];
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -1179,6 +1179,11 @@
|
||||
"comcol-role.edit.reviewer.description": "Reviewers are able to accept or reject incoming submissions. However, they are not able to edit the submission's metadata.",
|
||||
|
||||
|
||||
"comcol-role.edit.scorereviewers.name": "Score Reviewers",
|
||||
|
||||
"comcol-role.edit.scorereviewers.description": "Reviewers are able to give a score to incoming submissions, this will define whether the submission will be rejected or not.",
|
||||
|
||||
|
||||
|
||||
"community.form.abstract": "Short Description",
|
||||
|
||||
|
Reference in New Issue
Block a user