Skip to content

Commit

Permalink
pkp/pkp-lib#8564 order export by issue ordering in pubmed plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Aug 29, 2024
1 parent 31d018b commit 389405c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugins/importexport/pubmed/PubMedExportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,11 @@ public function exportIssues($issueIds, $context, $user)

foreach ($issueIds as $issueId) {
$sections = Repo::section()->getByIssueId($issueId);
$submissionsInSections = [];
$submissionsInSections[] = Repo::submission()->getInSections($issueId, $context->getId());
foreach ($sections as $section) {
$submissionsInSections = [];
$submissionsInSections[] = Repo::submission()->getInSections($issueId, $context->getId());
foreach ($submissionsInSections as $articles) {
foreach ($articles[$section->getId()]['articles'] as $article) {
$input[] = $article;
}
$input = array_merge($input, $articles[$section->getId()]['articles']);
}
}
}
Expand Down

0 comments on commit 389405c

Please sign in to comment.