From 7df59ee996b45f5ccf937157b9c0004a335fdd6b Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Mon, 21 Oct 2024 16:47:32 -0700 Subject: [PATCH] https://github.com/pkp/oaiJats/issues/52 Fix remote galley case for file ID fetch --- OAIMetadataFormat_JATS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }