Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

netmas
Copy link

@netmas netmas commented Apr 16, 2024

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

// Perform variable replacement for journal, issue, site info
$issue = Repo::issue()->getBySubmissionId($galley->getData('submissionId'));
$issue = Repo::issue()->getBySubmissionId($galley->getData($submissionIdAux));
Copy link
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
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