/**
  * Sets proofreader completion date
  * @param $args array
  * @param $request PKPRequest
  */
 function completeProofreader($args, &$request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $this->validate($request, $articleId);
     $this->setupTemplate(true);
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_COMPLETE', $request, $request->getUserVar('send') ? '' : $request->url(null, 'proofreader', 'completeProofreader'))) {
         $request->redirect(null, null, 'submission', $articleId);
     }
 }
 /**
  * Sets proofreader completion date
  */
 function completeProofreader($args)
 {
     $articleId = Request::getUserVar('articleId');
     SubmissionProofreadHandler::validate($articleId);
     parent::setupTemplate(true);
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_COMPLETE', Request::getUserVar('send') ? '' : Request::url(null, 'proofreader', 'completeProofreader'))) {
         Request::redirect(null, null, 'submission', $articleId);
     }
 }
 /**
  * Thank layout editor for proofreading
  */
 function thankLayoutEditorProofreader($args)
 {
     $articleId = Request::getUserVar('articleId');
     $send = Request::getUserVar('send') ? 1 : 0;
     list($journal, $submission) = SubmissionEditHandler::validate($articleId, SECTION_EDITOR_ACCESS_EDIT);
     parent::setupTemplate(true, $articleId, 'editing');
     import('submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_LAYOUT_ACK', $send ? '' : Request::url(null, null, 'thankLayoutEditorProofreader'))) {
         Request::redirect(null, null, 'submissionEditing', $articleId);
     }
 }
 /**
  * Set the author proofreading date completion
  */
 function authorProofreadingComplete($args)
 {
     $articleId = Request::getUserVar('articleId');
     $this->validate($articleId);
     $this->setupTemplate(true);
     $send = isset($args[0]) && $args[0] == 'send' ? true : false;
     import('classes.submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_AUTHOR_COMPLETE', $send ? '' : Request::url(null, 'author', 'authorProofreadingComplete', 'send'))) {
         Request::redirect(null, null, 'submissionEditing', $articleId);
     }
 }
 /**
  * Sets the date of layout editor proofreading completion
  */
 function layoutEditorProofreadingComplete($args)
 {
     $articleId = Request::getUserVar('articleId');
     list($journal, $submission) = SubmissionLayoutHandler::validate($articleId);
     parent::setupTemplate(true, $articleId);
     $send = false;
     if (isset($args[0])) {
         $send = Request::getUserVar('send') ? true : false;
     }
     import('submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_LAYOUT_COMPLETE', $send ? '' : Request::url(null, 'layoutEditor', 'layoutEditorProofreadingComplete', 'send'))) {
         Request::redirect(null, null, 'submission', $articleId);
     }
 }
 /**
  * Set the author proofreading date completion
  * @param $args array
  * @param $request PKPRequest
  */
 function authorProofreadingComplete($args, $request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $this->validate($request, $articleId);
     $this->setupTemplate(true, $articleId);
     $send = $request->getUserVar('send') ? true : false;
     import('classes.submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_AUTHOR_COMPLETE', $request, $send ? '' : $request->url(null, 'copyeditor', 'authorProofreadingComplete', 'send'))) {
         $request->redirect(null, null, 'submission', $articleId);
     }
 }
 /**
  * Thank layout editor for proofreading
  * @param $args array
  * @param $request PKPRequest
  */
 function thankLayoutEditorProofreader($args, $request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $send = $request->getUserVar('send');
     $this->validate($articleId, SECTION_EDITOR_ACCESS_EDIT);
     $this->setupTemplate(true, $articleId, 'editing');
     import('classes.submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_LAYOUT_ACK', $request, $send ? '' : $request->url(null, null, 'thankLayoutEditorProofreader'))) {
         $request->redirect(null, null, 'submissionEditing', $articleId);
     }
 }
Exemplo n.º 8
0
 /**
  * Sets proofreader completion date
  * @param $args array
  * @param $request PKPRequest
  */
 function completeProofreader($args, &$request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $this->validate($request, $articleId);
     $this->setupTemplate($request, true);
     // set the date notified for this signoff so proofreading can no longer be initiated.
     $signoffDao =& DAORegistry::getDAO('SignoffDAO');
     $signoff = $signoffDao->build('SIGNOFF_PROOFREADING_PROOFREADER', ASSOC_TYPE_ARTICLE, $articleId);
     $signoff->setDateNotified(Core::getCurrentDate());
     $signoffDao->updateObject($signoff);
     $signoff = $signoffDao->build('SIGNOFF_PROOFREADING_LAYOUT', ASSOC_TYPE_ARTICLE, $articleId);
     $signoff->setDateCompleted(Core::getCurrentDate());
     $signoffDao->updateObject($signoff);
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_COMPLETE', $request, $request->getUserVar('send') ? '' : $request->url(null, 'layoutEditor', 'completeProofreader'))) {
         $request->redirect(null, null, 'submission', $articleId);
     }
 }
 /**
  * Sets the date of layout editor proofreading completion
  * @param $args array
  * @param $request Request
  */
 function layoutEditorProofreadingComplete($args, $request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     list($journal, $submission) = $this->validate($request, $articleId);
     $this->setupTemplate(true, $articleId);
     $send = false;
     if (isset($args[0])) {
         $send = $request->getUserVar('send') ? true : false;
     }
     import('classes.submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_LAYOUT_COMPLETE', $request, $send ? '' : $request->url(null, 'layoutEditor', 'layoutEditorProofreadingComplete', 'send'))) {
         $request->redirect(null, null, 'submission', $articleId);
     }
 }