Skip to content

Commit ac26ab3

Browse files
author
francescomauto
committed
[DSC-2761] edit: workflow dates visible only if the item is not archived
1 parent 816a5f8 commit ac26ab3

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/app/shared/object-collection/shared/in-workflow-statistics/in-workflow-statistics.component.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,9 @@ export class InWorkflowStatisticsComponent implements OnInit {
100100

101101
initWorkflowDates(): void {
102102
if (this.item) {
103-
if (this.item.isArchived) {
104-
if (this.item.hasMetadata('dspace.workflow.startDateTime') && this.item.hasMetadata('dc.date.accessioned')) {
105-
this.canViewInWorkflowForDate$.next(true);
106-
this.inWorkflowFor$.next(
107-
this.getDateForArchivedItem(this.item.firstMetadataValue('dspace.workflow.startDateTime'), this.item.firstMetadataValue('dc.date.accessioned')),
108-
);
109-
}
110-
} else if (this.item.hasMetadata('dspace.workflow.startDateTime')) {
103+
if (this.item.isArchived) {return;}
104+
105+
if ( this.item.hasMetadata('dspace.workflow.startDateTime')) {
111106
this.canViewInWorkflowSinceDate$.next(true);
112107
this.inWorkflowSince$.next(
113108
this.getDateForItem(this.item.firstMetadataValue('dspace.workflow.startDateTime')),

0 commit comments

Comments
 (0)