Index: openacs-4/packages/xowf/catalog/xowf.de_DE.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/catalog/xowf.de_DE.ISO-8859-1.xml,v diff -u -r1.2.2.30 -r1.2.2.31 --- openacs-4/packages/xowf/catalog/xowf.de_DE.ISO-8859-1.xml 17 May 2020 18:52:23 -0000 1.2.2.30 +++ openacs-4/packages/xowf/catalog/xowf.de_DE.ISO-8859-1.xml 9 Jun 2020 19:24:22 -0000 1.2.2.31 @@ -151,6 +151,8 @@ Verwende f�r diese Pr�fung eine Online-Beaufsichtigung Synchronisierte Abwicklung Wird die angezeigte Bearbeitungszeit strikt vom Lehrenden vorgegeben, oder hat jeder Student die Anzeige seiner aktuellen Bearbeitsdauer, auch wenn er etwas sp�ter beginnt + Cut und Paste erlaubt + Darf der Studierende in mehrzeiligen Textfeldern Cut-und-Paste verwenden? Ver�ffentlichung der Pr�fung seit der Ver�ffentlichung Erreichte Punkte Index: openacs-4/packages/xowf/catalog/xowf.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/catalog/xowf.en_US.ISO-8859-1.xml,v diff -u -r1.2.2.27 -r1.2.2.28 --- openacs-4/packages/xowf/catalog/xowf.en_US.ISO-8859-1.xml 11 May 2020 14:14:10 -0000 1.2.2.27 +++ openacs-4/packages/xowf/catalog/xowf.en_US.ISO-8859-1.xml 9 Jun 2020 19:24:22 -0000 1.2.2.28 @@ -172,6 +172,8 @@ Use E-Proctoring for this exam Synchronized Exam Is the exam duration strictly controlled by the lecturer, or does every student get his working time displayed, independent from his starting time. + Allow Paste + Is the student allow to use cut and paste in multiline text fields? Exam Published since published Achieved Points Index: openacs-4/packages/xowf/lib/inclass-exam-answer.wf =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/lib/inclass-exam-answer.wf,v diff -u -r1.1.2.17 -r1.1.2.18 --- openacs-4/packages/xowf/lib/inclass-exam-answer.wf 8 Jun 2020 19:35:26 -0000 1.1.2.17 +++ openacs-4/packages/xowf/lib/inclass-exam-answer.wf 9 Jun 2020 19:24:22 -0000 1.1.2.18 @@ -215,6 +215,13 @@ # :set_title $obj -position $position -item_nr $item_nr -for_question -with_minutes + # + # Disallow paste if required + # + if {![$parent_obj property allow_paste true]} { + ::xowf::test_item::question_manager disallow_paste $form_obj + } + return $form_obj } Index: openacs-4/packages/xowf/tcl/test-item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/tcl/test-item-procs.tcl,v diff -u -r1.7.2.66 -r1.7.2.67 --- openacs-4/packages/xowf/tcl/test-item-procs.tcl 8 Jun 2020 19:35:40 -0000 1.7.2.66 +++ openacs-4/packages/xowf/tcl/test-item-procs.tcl 9 Jun 2020 19:24:22 -0000 1.7.2.67 @@ -2366,6 +2366,23 @@ return $result } + :public method disallow_paste {form_obj:object} { + # + # This function changes the the form_constraints of the provided + # form object by adding "paste=false" properties to textarea or + # text_fields entries. + # + set fc {} + foreach e [$form_obj property form_constraints] { + if {[regexp {^[^:]+_:(textarea|text_fields)} $e]} { + #ns_log notice "======= turn paste off" + append e , paste=false + } + lappend fc $e + } + $form_obj set_property form_constraints $fc + } + :method add_to_fc {-fc:required -position -minutes} { return [lmap c $fc { if {[regexp {^[^:]+_:} $c]} { Index: openacs-4/packages/xowf/www/prototypes/select_question.form.page =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/www/prototypes/Attic/select_question.form.page,v diff -u -r1.1.2.5 -r1.1.2.6 --- openacs-4/packages/xowf/www/prototypes/select_question.form.page 2 Apr 2020 12:53:00 -0000 1.1.2.5 +++ openacs-4/packages/xowf/www/prototypes/select_question.form.page 9 Jun 2020 19:24:22 -0000 1.1.2.6 @@ -4,12 +4,13 @@ -title "Select Question" \ -anon_instances f \ -text {} \ - -form {{
@question@ @shuffle_items@ @synchronized@ @signature@ @proctoring@
} text/html} \ + -form {{
@question@ @shuffle_items@ @allow_paste@ @synchronized@ @signature@ @proctoring@
} text/html} \ -form_constraints { @cr_fields:hidden {_title:text,label=#xowf.online-exam-name#,default=#xowf.online-exam-default_name#} {question:form_page,multiple=true,form=en:TestItemText.form|en:TestItemShortText.form|en:TestItemMC.form|en:TestItemSC.form|en:TestItemUpload.form|en:TestItemReorder.form,required,help_text=#xowf.select_question_help_text#,label=#xowiki.questions#} {shuffle_items:boolean,horizontal=true,label=#xowf.randomized_items#,help_text=#xowf.randomized_items_help_text#} + {allow_paste:boolean,horizontal=true,default=t,label=#xowf.Allow_paste#,help_text=#xowf.Allow_paste_help_text#} {synchronized:boolean,horizontal=true,default=f,label=#xowf.Synchronized#,help_text=#xowf.Synchronized_help_text#} {signature:boolean,horizontal=true,default=f,label=#xowf.Signature#,help_text=#xowf.Signature_help_text#} {proctoring:boolean,horizontal=true,default=f,label=#xowf.Proctoring#,help_text=#xowf.Proctoring_help_text#}