/**
  * Show the form to allow the user to select files from previous stages
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function selectFiles($args, $request)
 {
     import('lib.pkp.controllers.grid.files.final.form.ManageFinalDraftFilesForm');
     $manageFinalDraftFilesForm = new ManageFinalDraftFilesForm($this->getSubmission()->getId());
     $manageFinalDraftFilesForm->initData($args, $request);
     return new JSONMessage(true, $manageFinalDraftFilesForm->fetch($request));
 }
 /**
  * Add a file that the Press Editor did not initally add to the final draft
  * @param $args array
  * @param $request PKPRequest
  * @return string Serialized JSON object
  */
 function manageFinalDraftFiles($args, &$request)
 {
     // Instantiate the files form.
     import('controllers.grid.files.finalDraftFiles.form.ManageFinalDraftFilesForm');
     $monograph =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH);
     /* @var $monograph Monograph */
     $manageFinalDraftFilesForm = new ManageFinalDraftFilesForm($monograph);
     // Initialize and render the files form.
     $manageFinalDraftFilesForm->initData($args, $request);
     $json = new JSON('true', $manageFinalDraftFilesForm->fetch($request));
     return $json->getString();
 }