Skip to content

Commit

Permalink
pkp/pkp-lib#10132 add checkbox for validation in Onix export plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Jul 16, 2024
1 parent 6177cdd commit 16042cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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 16042cb

Please sign in to comment.