From c0d6d5c9597052f278d3ff606928599fe5c2df02 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Tue, 16 Jul 2024 15:12:19 -0300 Subject: [PATCH] pkp/pkp-lib#10132 add checkbox for validation in Onix export plugin --- classes/plugins/ImportExportPlugin.php | 4 ++-- classes/plugins/importexport/PKPImportExportDeployment.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/classes/plugins/ImportExportPlugin.php b/classes/plugins/ImportExportPlugin.php index 835c33efcaa..1a47a5c6bab 100644 --- a/classes/plugins/ImportExportPlugin.php +++ b/classes/plugins/ImportExportPlugin.php @@ -431,7 +431,7 @@ public function getBounceTab($request, $title, $bounceUrl, $bounceParameterArray } /** - * Download file given it's name + * Download file given its name */ public function downloadExportedFile(string $exportedFileContentNamePart, string $exportedFileDatePart, PKPImportExportDeployment $deployment) { @@ -449,7 +449,7 @@ public function downloadExportedFile(string $exportedFileContentNamePart, string } /** - * Create file given it's name and content + * Create file given its name and content * * @param ?DateTime $dateFilenamePart * diff --git a/classes/plugins/importexport/PKPImportExportDeployment.php b/classes/plugins/importexport/PKPImportExportDeployment.php index 58a9d05dc3b..91641e5b535 100644 --- a/classes/plugins/importexport/PKPImportExportDeployment.php +++ b/classes/plugins/importexport/PKPImportExportDeployment.php @@ -590,6 +590,10 @@ public function export($rootFilter, $exportObjects, $opts = []) $currentFilter = PKPImportExportFilter::getFilter($rootFilter, $this, $opts); + if (array_key_exists('noValidation', $opts)) { + $currentFilter->setNoValidation($opts['noValidation']); + } + libxml_use_internal_errors(true); $result = $currentFilter->execute($exportObjects, true);