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.95 -r1.7.2.96 --- openacs-4/packages/xowf/tcl/test-item-procs.tcl 8 Dec 2020 15:37:26 -0000 1.7.2.95 +++ openacs-4/packages/xowf/tcl/test-item-procs.tcl 15 Dec 2020 19:22:55 -0000 1.7.2.96 @@ -674,7 +674,7 @@ dict set fc_dict options $options dict set fc_dict answer $answer dict set fc_dict grading exact - + append form \ "
\n" \ "
\n" \ @@ -801,7 +801,7 @@ set autoCorrectSpec "" } #:msg autoCorrectSpec=$autoCorrectSpec - # {correct {boolean_checkbox,horizontal=true,label=#xowf.Correct#,form_item_wrapper_CSSclass=form-inline}} + # {correct {boolean_checkbox,horizontal=true,label=#xowf.Correct#,form_item_wrapper_CSSclass=form-inline}} :create_components [subst { {text {$widget,height=50px,label=#xowf.choice_option#,plugins=OacsFs}} {correct {boolean_checkbox,horizontal=true,label=#xowf.Correct#,form_item_wrapper_CSSclass=form-inline}} @@ -2647,6 +2647,8 @@ {-with_title:switch false} {-with_minutes:switch false} {-with_points:switch false} + {-titleless_form:switch false} + {-obj:object} form_objs } { set full_form {} @@ -2679,8 +2681,23 @@ append title " - [:points_string $form_obj]" } - append full_form "

$title

\n" - append full_form [$form_obj property form] \n + if {!$titleless_form} { + append full_form \ + "

$title

\n" + } + # + # Resolve links in the context of the resolve_object + # + append full_form \ + [$obj substitute_markup \ + -context_obj $form_obj \ + [$form_obj property form]] + + #append full_form \ + # [$form_obj substitute_markup -context_obj $form_obj [$form_obj property form]] + + #ns_log notice "FORM=$full_form" + lappend title_infos [list full_title $title \ title $form_title \ minutes $minutes \ @@ -2821,6 +2838,7 @@ -with_minutes=$with_minutes \ -with_points=$with_points \ {*}$extra_flags \ + -obj $obj \ $form_objs] } @@ -2939,6 +2957,7 @@ {-item_nr:integer} {-with_numbers:switch false} {-with_title:switch false} + {-titleless_form:switch false} {-with_minutes:switch false} obj:object } { @@ -2963,8 +2982,10 @@ } return [:question_info \ -with_title=$with_title \ + -titleless_form=$titleless_form \ -with_minutes=$with_minutes \ {*}$extra_flags \ + -obj $obj \ $form_objs] }