Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SubmissionFilesArtworkMetadataForm.inc.php
1 <?php
19 import('lib.pkp.controllers.wizard.fileUpload.form.SubmissionFilesMetadataForm');
20 
28  function SubmissionFilesArtworkMetadataForm(&$submissionFile, $stageId, $reviewRound = null) {
29  parent::SubmissionFilesMetadataForm($submissionFile, $stageId, $reviewRound);
30  AppLocale::requireComponents(LOCALE_COMPONENT_PKP_GRID);
31  }
32 
33 
34  //
35  // Implement template methods from Form
36  //
40  function readInputData() {
41  $this->readUserVars(array(
42  'artworkCaption', 'artworkCredit', 'artworkCopyrightOwner',
43  'artworkCopyrightOwnerContact', 'artworkPermissionTerms'
44  ));
45  parent::readInputData();
46  }
47 
51  function execute($args, $request) {
52  //
53  // FIXME: Should caption, credit, or any other fields be
54  // localized?
55  // FIXME: How to upload a permissions file?
56  // FIXME: How to select a contact author from the submission
57  // author list?
58  //
59 
60  // Update the sumbission file by reference.
61  $submissionFile = $this->getSubmissionFile();
62  $submissionFile->setCaption($this->getData('artworkCaption'));
63  $submissionFile->setCredit($this->getData('artworkCredit'));
64  $submissionFile->setCopyrightOwner($this->getData('artworkCopyrightOwner'));
65  $submissionFile->setCopyrightOwnerContactDetails($this->getData('artworkCopyrightOwnerContact'));
66  $submissionFile->setPermissionTerms($this->getData('artworkPermissionTerms'));
67 
68  // Persist the submission file.
69  parent::execute($args, $request);
70  }
71 }
72 
73 ?>
static requireComponents()
readUserVars($vars)
Definition: Form.inc.php:364
getData($key)
Definition: Form.inc.php:210
Form for editing a submission file&#39;s metadata.
SubmissionFilesArtworkMetadataForm(&$submissionFile, $stageId, $reviewRound=null)