diff --git a/OAIMetadataFormat_JATS.php b/OAIMetadataFormat_JATS.php index 98fc4cd..5959efb 100644 --- a/OAIMetadataFormat_JATS.php +++ b/OAIMetadataFormat_JATS.php @@ -43,7 +43,7 @@ protected function _findJats($record) { // First, look for candidates in the galleys area (published content). if (!$forceJatsTemplate) { foreach ($galleys as $galley) { - $galleyFile = Repo::submissionFile()->get($galley->getData('submissionFileId')); + $galleyFile = Repo::submissionFile()->get((int) $galley->getData('submissionFileId')); if ($galleyFile && $this->_isCandidateFile($galleyFile)) $candidateFiles[] = $galleyFile; }