From 16042cb50c54bd58ea4555e5f364a7599f2bf5eb Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Tue, 16 Jul 2024 15:44:59 -0300 Subject: [PATCH] pkp/pkp-lib#10132 add checkbox for validation in Onix export plugin --- plugins/importexport/onix30/Onix30ExportPlugin.php | 6 ++++-- plugins/importexport/onix30/templates/index.tpl | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/importexport/onix30/Onix30ExportPlugin.php b/plugins/importexport/onix30/Onix30ExportPlugin.php index 959b0302660..e95a4414e6c 100644 --- a/plugins/importexport/onix30/Onix30ExportPlugin.php +++ b/plugins/importexport/onix30/Onix30ExportPlugin.php @@ -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'); diff --git a/plugins/importexport/onix30/templates/index.tpl b/plugins/importexport/onix30/templates/index.tpl index 4fc9797b989..ee13db0041d 100644 --- a/plugins/importexport/onix30/templates/index.tpl +++ b/plugins/importexport/onix30/templates/index.tpl @@ -72,6 +72,9 @@ + {fbvFormSection list="true"} + {fbvElement type="checkbox" id="validation" label="plugins.importexport.common.validation" checked=$validation|default:true} + {/fbvFormSection} {fbvFormSection}