17 import(
'lib.pkp.classes.submission.SubmissionFile');
32 return $this->
getData(
'caption');
40 $this->
setData(
'caption', $caption);
48 return $this->
getData(
'credit');
56 $this->
setData(
'credit', $credit);
64 return $this->
getData(
'copyrightOwner');
72 $this->
setData(
'copyrightOwner', $owner);
80 return $this->
getData(
'copyrightOwnerContact');
88 $this->
setData(
'copyrightOwnerContact', $contactDetails);
104 $this->
setData(
'terms', $terms);
112 return $this->
getData(
'permissionFileId');
120 $this->
setData(
'permissionFileId', $fileId);
128 return $this->
getData(
'contactAuthor');
136 $this->
setData(
'contactAuthor', $authorId);
144 if (!$this->_imageInfo) {
145 $this->_imageInfo = getimagesize($this->
getFilePath());
147 return $this->_imageInfo[0];
155 if (!$this->_imageInfo) {
156 $this->_imageInfo = getimagesize($this->
getFilePath());
158 return $this->_imageInfo[1];
175 if (!is_int($width) || $width <= 0) {
178 return number_format($width/$dpi,1);
190 $height = $this->getheight();
191 if (!is_int($height) || $height <= 0) {
194 return number_format($height/$dpi,1);
203 if (is_a($submissionFile,
'SubmissionArtworkFile')) {
204 $this->
setCaption($submissionFile->getCaption());
211 parent::copyEditableMetadataFrom($submissionFile);
218 import(
'lib.pkp.controllers.wizard.fileUpload.form.SubmissionFilesArtworkMetadataForm');