/**
  * Create a submission with the supplied data.
  * @param $data array Associative array of submission information
  */
 protected function createSubmission($data)
 {
     // By default, if this is an edited volume, configure 1 file per
     // chapter.
     if ($data['type'] == 'editedVolume' && !isset($data['files'])) {
         $files = array();
         foreach ($data['chapters'] as &$chapter) {
             $files[] = array('fileTitle' => $chapter['title']);
             $chapter['files'] = array($chapter['title']);
         }
         $data['files'] = $files;
     } else {
         foreach ($data['chapters'] as &$chapter) {
             if (!isset($chapter['files'])) {
                 $chapter['files'] = array();
             }
         }
     }
     // If 'additionalFiles' is specified, it's to be used to augment the default
     // set, rather than overriding it (as using 'files' would do). Add the arrays.
     if (isset($data['additionalFiles'])) {
         $data['files'] = array_merge($data['files'], $data['additionalFiles']);
     }
     parent::createSubmission($data);
 }