From c6932de63da60d4d40e876f1574ed8b552e52511 Mon Sep 17 00:00:00 2001 From: Mykola Korobko Date: Tue, 3 Sep 2024 15:22:24 +0300 Subject: [PATCH 1/3] feature: AUT-3528 add preset for x-tao-printable --- models/classes/QtiCategoryPresetProvider.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/models/classes/QtiCategoryPresetProvider.php b/models/classes/QtiCategoryPresetProvider.php index 11295bdf0..af672e7b0 100644 --- a/models/classes/QtiCategoryPresetProvider.php +++ b/models/classes/QtiCategoryPresetProvider.php @@ -15,7 +15,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (c) 2017 (original work) Open Assessment Technologies SA; + * Copyright (c) 2024 (original work) Open Assessment Technologies SA; */ namespace oat\taoQtiTest\models; @@ -216,6 +216,14 @@ public function registerPresets(TestCategoryPresetProvider $presetService) 'order' => 700, 'pluginId' => 'zoom' ]), + TestCategoryPreset::fromArray([ + 'id' => 'printable', + 'label' => __('Print out'), + 'qtiCategory' => 'x-tao-printable', + 'description' => __('Allow a Test Taker to print out the item.'), + 'order' => 700, + 'pluginId' => 'printable' + ]), TestCategoryPreset::fromArray([ 'id' => 'apiptts', 'label' => __('APIP Text To Speech'), From 84f9a5f329ce89a514120354ebc53c53ee1626c0 Mon Sep 17 00:00:00 2001 From: Sergei Mikhailov Date: Mon, 23 Sep 2024 12:05:10 +0200 Subject: [PATCH 2/3] fix: remove the printable-tool plugin ID, as none is provided by TAO 3.x --- models/classes/QtiCategoryPresetProvider.php | 1 - 1 file changed, 1 deletion(-) diff --git a/models/classes/QtiCategoryPresetProvider.php b/models/classes/QtiCategoryPresetProvider.php index af672e7b0..0572c0f2b 100644 --- a/models/classes/QtiCategoryPresetProvider.php +++ b/models/classes/QtiCategoryPresetProvider.php @@ -222,7 +222,6 @@ public function registerPresets(TestCategoryPresetProvider $presetService) 'qtiCategory' => 'x-tao-printable', 'description' => __('Allow a Test Taker to print out the item.'), 'order' => 700, - 'pluginId' => 'printable' ]), TestCategoryPreset::fromArray([ 'id' => 'apiptts', From b510933d7299713d7c739bab28ad813dd0fc3770 Mon Sep 17 00:00:00 2001 From: Sergei Mikhailov Date: Mon, 23 Sep 2024 13:08:06 +0200 Subject: [PATCH 3/3] fix: print-out tool label capitalization --- models/classes/QtiCategoryPresetProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/classes/QtiCategoryPresetProvider.php b/models/classes/QtiCategoryPresetProvider.php index 0572c0f2b..253fedaa4 100644 --- a/models/classes/QtiCategoryPresetProvider.php +++ b/models/classes/QtiCategoryPresetProvider.php @@ -218,7 +218,7 @@ public function registerPresets(TestCategoryPresetProvider $presetService) ]), TestCategoryPreset::fromArray([ 'id' => 'printable', - 'label' => __('Print out'), + 'label' => __('Print Out'), 'qtiCategory' => 'x-tao-printable', 'description' => __('Allow a Test Taker to print out the item.'), 'order' => 700,