setAttribute('approved', $representation->getIsApproved()?'true':'false'); $submission = $this->getDeployment()->getSubmission(); return $representationNode; } /** * Get the available submission files for a representation * @param $representation Representation * @return array */ function getFiles($representation) { $submissionFileDao = DAORegistry::getDAO('SubmissionFileDAO'); $galleyFiles = array(); if ($representation->getFileId()) $galleyFiles = array($submissionFileDao->getLatestRevision($representation->getFileId())); return $galleyFiles; } } ?>