/**
* @copydoc PKPNotificationOperationManager::getNotificationContents()
*/
public function getNotificationTitle($notification)
{
$title = parent::getNotificationTitle($notification);
$type = $notification->getType();
assert(isset($type));
switch ($type) {
case NOTIFICATION_TYPE_REVIEW_ROUND_STATUS:
$reviewRoundDao = DAORegistry::getDAO('ReviewRoundDAO');
$reviewRound = $reviewRoundDao->getById($notification->getAssocId());
return __('notification.type.roundStatusTitle', array('round' => $reviewRound->getRound()));
case NOTIFICATION_TYPE_FORM_ERROR:
return __('form.errorsOccurred');
default:
$delegateResult = $this->getByDelegate($notification->getType(), $notification->getAssocType(), $notification->getAssocId(), __FUNCTION__, array($notification));
if ($delegateResult) {
$title = $delegateResult;
}
return $title;
}
}