17 import(
'lib.pkp.classes.notification.managerDelegate.PKPApproveSubmissionNotificationManager');
26 parent::__construct($notificationType);
33 $router = $request->getRouter();
34 $dispatcher = $router->getDispatcher();
36 $context = $contextDao->getById($notification->getContextId());
38 switch ($notification->getType()) {
39 case NOTIFICATION_TYPE_VISIT_CATALOG:
40 return $dispatcher->url($request, ROUTE_PAGE, $context->getPath(),
'manageCatalog');
43 return parent::getNotificationUrl($request, $notification);
50 switch ($notification->getType()) {
51 case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
52 case NOTIFICATION_TYPE_FORMAT_NEEDS_APPROVED_SUBMISSION:
53 return __(
'notification.type.approveSubmissionTitle');
54 case NOTIFICATION_TYPE_VISIT_CATALOG:
55 return __(
'notification.type.visitCatalogTitle');
63 switch ($notification->getType()) {
64 case NOTIFICATION_TYPE_FORMAT_NEEDS_APPROVED_SUBMISSION:
65 return __(
'notification.type.formatNeedsApprovedSubmission');
66 case NOTIFICATION_TYPE_VISIT_CATALOG:
67 return __(
'notification.type.visitCatalog');
68 case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
69 return __(
'notification.type.approveSubmission');
72 return parent::getNotificationMessage($request, $notification);