Skip to content

Fixes according to: https://github.com/asmecher/lensGalley/issues/68#69

Open
netmas wants to merge 1 commit into
asmecher:mainfrom
netmas:fix-error-displaying-suplementary-files-images
Open

Fixes according to: https://github.com/asmecher/lensGalley/issues/68#69
netmas wants to merge 1 commit into
asmecher:mainfrom
netmas:fix-error-displaying-suplementary-files-images

Conversation

@netmas

@netmas netmas commented Apr 16, 2024

Copy link
Copy Markdown

Hello! I'm working with Ppantaleo and proposed this fix: #68
All the details are there

Comment thread LensGalleyPlugin.php

// Perform variable replacement for journal, issue, site info
$issue = Repo::issue()->getBySubmissionId($galley->getData('submissionId'));
$issue = Repo::issue()->getBySubmissionId($galley->getData($submissionIdAux));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@netmas
Can you confirm that this gets the file ?

$issue = Repo::issue()->getBySubmissionId($galley->getData($submissionIdAux));

I could only get the file run using this modification ?

  $issue = Repo::issue()->getBySubmissionId($submissionIdAux);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@netmas @Ppantaleo! sorry, I did not send a proper reivew reqest, please have a look about the comment and you may also need to check for the fileUrl for OJS 3.4

i locally had to use the follwing url to get it working.

$fileUrl = $request->url(null, 'article', 'download',[$referredArticle->getData('id'),'version',$referredPublication->getData('urlPath'), $galley->getBestGalleyId(), $embeddableFile->getId()]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in displaying supplementary files - img

2 participants