/**
  * Edit a author
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function editAuthor($args, $request)
 {
     // Identify the author to be updated
     $authorId = $request->getUserVar('authorId');
     $submission = $this->getSubmission();
     $authorDao = DAORegistry::getDAO('AuthorDAO');
     $author = $authorDao->getById($authorId, $submission->getId());
     // Form handling
     import('lib.pkp.controllers.grid.users.author.form.AuthorForm');
     $authorForm = new AuthorForm($submission, $author, 'submissionId');
     $authorForm->initData();
     return new JSONMessage(true, $authorForm->fetch($request));
 }