Skip to content

Commit

Permalink
Merge pull request #1641 from kaitlinnewson/10132-main
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10132 add checkbox for validation in Onix export plugin
  • Loading branch information
bozana authored Jul 17, 2024
2 parents 6177cdd + c544161 commit 5b2f0e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pkp
6 changes: 4 additions & 2 deletions plugins/importexport/onix30/Onix30ExportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,16 @@ public function display($args, $request)
$request,
__('plugins.importexport.native.export.submissions.results'),
'exportSubmissions',
['selectedSubmissions' => $request->getUserVar('selectedSubmissions')]
['selectedSubmissions' => $request->getUserVar('selectedSubmissions'), 'validation' => $request->getUserVar('validation')]
);

return $tab;
case 'exportSubmissions':
$submissionIds = (array) $request->getUserVar('selectedSubmissions');

$this->getExportSubmissionsDeployment($submissionIds, $this->_childDeployment);
$noValidation = $request->getUserVar('validation') ? ['noValidation' => 0] : ['noValidation' => 1];

$this->getExportSubmissionsDeployment($submissionIds, $this->_childDeployment, $noValidation);

$result = $this->getExportTemplateResult($this->getDeployment(), $templateMgr, 'submissions');

Expand Down
3 changes: 3 additions & 0 deletions plugins/importexport/onix30/templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
</div>
</template>
</submissions-list-panel>
{fbvFormSection list="true"}
{fbvElement type="checkbox" id="validation" label="plugins.importexport.common.validation" checked=$validation|default:true}
{/fbvFormSection}
{fbvFormSection}
<pkp-button :disabled="!components.submissions.itemsMax" @click="toggleSelectAll">
<template v-if="components.submissions.itemsMax && selectedSubmissions.length >= components.submissions.itemsMax">
Expand Down

0 comments on commit 5b2f0e5

Please sign in to comment.