16 import(
'lib.pkp.classes.notification.NotificationManagerDelegate');
25 parent::__construct($notificationType);
32 switch ($notification->getType()) {
33 case NOTIFICATION_TYPE_EDITOR_DECISION_INTERNAL_REVIEW:
34 return __(
'notification.type.editorDecisionInternalReview');
35 case NOTIFICATION_TYPE_EDITOR_DECISION_ACCEPT:
36 return __(
'notification.type.editorDecisionAccept');
37 case NOTIFICATION_TYPE_EDITOR_DECISION_EXTERNAL_REVIEW:
38 return __(
'notification.type.editorDecisionExternalReview');
39 case NOTIFICATION_TYPE_EDITOR_DECISION_PENDING_REVISIONS:
40 return __(
'notification.type.editorDecisionPendingRevisions');
41 case NOTIFICATION_TYPE_EDITOR_DECISION_RESUBMIT:
42 return __(
'notification.type.editorDecisionResubmit');
43 case NOTIFICATION_TYPE_EDITOR_DECISION_NEW_ROUND:
44 return __(
'notification.type.editorDecisionNewRound');
45 case NOTIFICATION_TYPE_EDITOR_DECISION_DECLINE:
46 return __(
'notification.type.editorDecisionDecline');
47 case NOTIFICATION_TYPE_EDITOR_DECISION_SEND_TO_PRODUCTION:
48 return __(
'notification.type.editorDecisionSendToProduction');
58 return NOTIFICATION_STYLE_CLASS_INFORMATION;
65 return __(
'notification.type.editorDecisionTitle');
72 $context = $request->getContext();
76 $notificationFactory = $notificationDao->getByAssoc(
77 ASSOC_TYPE_SUBMISSION,
86 while ($notification = $notificationFactory->next()) {
88 if ($userIds !==
null && !in_array($notification->getUserId(), $userIds))
continue;
91 if (!in_array($notification->getType(), $editorDecisionNotificationTypes))
continue;
93 $notificationDao->deleteObject($notification);
103 ASSOC_TYPE_SUBMISSION,
105 $this->_getNotificationTaskLevel($this->getNotificationType()),
115 switch ($notification->getType()) {
116 case NOTIFICATION_TYPE_EDITOR_DECISION_INTERNAL_REVIEW:
117 case NOTIFICATION_TYPE_EDITOR_DECISION_ACCEPT:
118 case NOTIFICATION_TYPE_EDITOR_DECISION_EXTERNAL_REVIEW:
119 case NOTIFICATION_TYPE_EDITOR_DECISION_PENDING_REVISIONS:
120 case NOTIFICATION_TYPE_EDITOR_DECISION_RESUBMIT:
121 case NOTIFICATION_TYPE_EDITOR_DECISION_NEW_ROUND:
122 case NOTIFICATION_TYPE_EDITOR_DECISION_DECLINE:
123 case NOTIFICATION_TYPE_EDITOR_DECISION_SEND_TO_PRODUCTION:
125 $submission = $submissionDao->getById($notification->getAssocId());
126 import(
'classes.core.Services');
127 return Services::get(
'submission')->getWorkflowUrlByUserRoles($submission, $notification->getUserId());
142 NOTIFICATION_TYPE_EDITOR_DECISION_INTERNAL_REVIEW,
143 NOTIFICATION_TYPE_EDITOR_DECISION_ACCEPT,
144 NOTIFICATION_TYPE_EDITOR_DECISION_EXTERNAL_REVIEW,
145 NOTIFICATION_TYPE_EDITOR_DECISION_PENDING_REVISIONS,
146 NOTIFICATION_TYPE_EDITOR_DECISION_RESUBMIT,
147 NOTIFICATION_TYPE_EDITOR_DECISION_NEW_ROUND,
148 NOTIFICATION_TYPE_EDITOR_DECISION_DECLINE,
149 NOTIFICATION_TYPE_EDITOR_DECISION_SEND_TO_PRODUCTION
160 case NOTIFICATION_TYPE_EDITOR_DECISION_PENDING_REVISIONS:
161 case NOTIFICATION_TYPE_EDITOR_DECISION_RESUBMIT:
162 return NOTIFICATION_LEVEL_TASK;
164 return NOTIFICATION_LEVEL_NORMAL;