Ejemplo n.º 1
0
 /**
  * Clear article pub id.
  * @param $args array
  * @param $request Request
  * @return JSONMessage JSON object
  */
 function clearPubId($args, $request)
 {
     import('controllers.tab.pubIds.form.PublicIdentifiersForm');
     $submission = $this->getSubmission();
     $stageId = $this->getStageId();
     $identifiersForm = new PublicIdentifiersForm($submission, $stageId, array('displayedInContainer' => true));
     $identifiersForm->clearPubId($request->getUserVar('pubIdPlugIn'));
     return new JSONMessage(true);
 }
Ejemplo n.º 2
0
 /**
  * Clear proof submission file pub id.
  * @param $args array
  * @param $request Request
  * @return JSONMessage JSON object
  */
 function clearPubId($args, $request)
 {
     $submissionFile = $this->getAuthorizedContextObject(ASSOC_TYPE_SUBMISSION_FILE);
     $stageId = $request->getUserVar('stageId');
     import('controllers.tab.pubIds.form.PublicIdentifiersForm');
     $form = new PublicIdentifiersForm($submissionFile, $stageId);
     $form->clearPubId($request->getUserVar('pubIdPlugIn'));
     return new JSONMessage(true);
 }
Ejemplo n.º 3
0
 /**
  * Clear issue pub id
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function clearPubId($args, $request)
 {
     if (!$request->checkCSRF()) {
         return new JSONMessage(false);
     }
     $issue = $this->getAuthorizedContextObject(ASSOC_TYPE_ISSUE);
     import('controllers.tab.pubIds.form.PublicIdentifiersForm');
     $form = new PublicIdentifiersForm($issue);
     $form->clearPubId($request->getUserVar('pubIdPlugIn'));
     return new JSONMessage(true);
 }
Ejemplo n.º 4
0
 /**
  * Clear galley pub id
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function clearPubId($args, $request)
 {
     $submission = $this->getSubmission();
     $representationDao = Application::getRepresentationDAO();
     $representation = $representationDao->getById($request->getUserVar('representationId'), $submission->getId());
     import('controllers.tab.pubIds.form.PublicIdentifiersForm');
     $form = new PublicIdentifiersForm($representation);
     $form->clearPubId($request->getUserVar('pubIdPlugIn'));
     return new JSONMessage(true);
 }