Skip to content

Commit

Permalink
#85 Get issue ID from the publication instead of submission
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Apr 18, 2023
1 parent 6a17ff5 commit 7cb50cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JatsParserPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private function pdfCreation(string $htmlString, Publication $publication, Reque
$context = $request->getContext(); /* @var $context Journal */
$submission = Services::get('submission')->get($publication->getData('submissionId')); /* @var $submission Submission */
$issueDao = DAORegistry::getDAO('IssueDAO');
$issue = $issueDao->getBySubmissionId($submission->getId(), $context->getId());
$issue = $issueDao->getById($publication->getData('issueId'), $context->getId());

//$this->imageUrlReplacement($xmlGalley, $xpath);
//$this->ojsCitationsExtraction($article, $templateMgr, $htmlDocument, $request);
Expand Down

0 comments on commit 7cb50cb

Please sign in to comment.