Skip to content

Commit

Permalink
#52 Fix remote galley case for file ID fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Oct 21, 2024
1 parent 6e31fc3 commit 7df59ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OAIMetadataFormat_JATS.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7df59ee

Please sign in to comment.