OJS 3.1 wont show remote galleys

We just upgraded from OJS 2.4.7.1 to OJS 3.1 and the link for remote hosted galleys are not displayed on article page.

Any suggestion on how to display them?

Hi @ronniebrito,

It’s possible that some of your data didn’t get migrated properly during the upgrade. When you open the submission records for past submissions, under the Production tab, are there files listed under galleys?

Best,
Amanda Stevens
Public Knowledge Project Team

It seems that remote galleys and supp files are not considered for display in 3.1, s. remote galley and supp files are not displayed on the article page · Issue #3007 · pkp/pkp-lib · GitHub.

Thanks!
Bozana

1 Like

but they should, right?

the data was migrated, as it is available at submission_galleys table

image

changing the DAO getData(galleys) method somewhere in the code could solve this? Or anywhere else?

regards

Hi @ronniebrito

Yes, we will work on a solution… Currently, the problem is that we cannot differentiate between remote full texts and remote supplementary files form the data we collect in the DB. Thus track the GitHub Issue for a fix…

Best,
Bozana

1 Like

Found the solution. Roughly line 116 of ArticleHandler.inc.php the code was corrected to

foreach ($galleys as $galley) {
$file = $galley->getFile();
if (!$file) {
$primaryGalleys = $galley;
continue;
}
if (in_array($file->getGenreId(), $primaryGenreIds)) {
$primaryGalleys = $galley;
} elseif (in_array($file->getGenreId(), $supplementaryGenreIds)) {
$supplementaryGalleys = $galley;
}
}

Source: remote galley and supp files are not displayed on the article page · Issue #3007 · pkp/pkp-lib · GitHub


Hello

Has this issue been resolved? I have one live journal now with all the Publication Galleys hyperlinked to a PDF stored in Google Drive. Afer upgrading from 3.0.2.0 to 3.1.0.1, all the links to Galleys were lost.

Thank you!
SPP HQ

1 Like