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 30, 2024
1 parent 7ae7d66 commit fcabc5a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/importexport/pubmed/PubMedExportPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,9 @@ function exportIssues($issueIds, $context, $user) {
$sectionDao = DAORegistry::getDAO('SectionDAO');
foreach ($issueIds as $issueId) {
$sections = $sectionDao->getByIssueId($issueId);
$submissionsInSections = [];
$submissionsInSections[] = Services::get('submission')->getInSections($issueId, $context->getId());
$submissionsInSections = Services::get('submission')->getInSections($issueId, $context->getId());
foreach ($sections as $section) {
foreach ($submissionsInSections as $articles) {
$input = array_merge($input, $articles[$section->getId()]['articles']);
}
$input = array_merge($input, $submissionsInSections[$section->getId()]['articles']);
}
}

Expand Down

0 comments on commit fcabc5a

Please sign in to comment.