- @items.html;noquote@
+ | @items.html;noquote@
+
+
+
Index: openacs-4/packages/assessment/lib/session-items.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/session-items.tcl,v
diff -u -r1.7 -r1.7.2.1
--- openacs-4/packages/assessment/lib/session-items.tcl 15 Apr 2005 17:26:45 -0000 1.7
+++ openacs-4/packages/assessment/lib/session-items.tcl 4 Jul 2005 15:02:23 -0000 1.7.2.1
@@ -7,14 +7,19 @@
}
# todo: display feedback text
-db_multirow -extend { presentation_type html result_points feedback answered_p choice_orientation next_title num } items session_items {} {
+db_multirow -extend { presentation_type html result_points feedback answered_p choice_orientation next_title num view} items session_items {} {
set default_value [as::item_data::get -subject_id $subject_id -as_item_id $as_item_id -session_id $session_id]
set presentation_type [as::item_form::add_item_to_form -name session_results_$section_id -section_id $section_id -item_id $as_item_id -session_id $session_id -default_value $default_value -show_feedback $show_feedback]
+
if {$presentation_type == "fitb"} {
regsub -all -line -nocase -- {
-
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/tcl/as-item-type-fu-procs.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/tcl/as-item-type-fu-procs.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/assessment/www/assessment.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/Attic/assessment.tcl,v
diff -u -r1.47.2.3 -r1.47.2.4
--- openacs-4/packages/assessment/www/assessment.tcl 27 Jun 2005 14:50:16 -0000 1.47.2.3
+++ openacs-4/packages/assessment/www/assessment.tcl 4 Jul 2005 15:02:24 -0000 1.47.2.4
@@ -15,6 +15,7 @@
{return_url:optional}
response_to_item:array,optional,multiple,html
{next_asm:optional}
+ {response:multiple,optional}
} -properties {
context:onevalue
page_title:onevalue
@@ -312,6 +313,7 @@
# save answer
set response_item_id \$item_id
+
db_1row process_item_type {}
set item_type \[string range \$item_type end-1 end\]
if {!\[info exists response_to_item(\$response_item_id)\]} {
@@ -325,7 +327,14 @@
}
set points \[ad_decode \$points \"\" 0 \$points\]
- as::item_type_\$item_type\\::process -type_id \$item_type_id -session_id \$session_id -as_item_id \$response_item_id -section_id \$section_id -subject_id \$user_id -response \$response_to_item(\$response_item_id) -max_points \$points -allow_overwrite_p \$display(back_button_p)
+
+ set response \$response_to_item(\$response_item_id)
+
+ if { \$item_type == \"fu\" } {
+ set response \[list \$response_to_item(\$response_item_id) \$response_to_item(\${response_item_id}.tmpfile) \$response_to_item(\${response_item_id}.content-type)\]
+ }
+
+ as::item_type_\$item_type\\::process -type_id \$item_type_id -session_id \$session_id -as_item_id \$response_item_id -section_id \$section_id -subject_id \$user_id -response \$response -max_points \$points -allow_overwrite_p \$display(back_button_p)
}
}"
set after_submit "{
@@ -391,7 +400,13 @@
}
set points \[ad_decode \$points \"\" 0 \$points\]
- as::item_type_\$item_type\\::process -type_id \$item_type_id -session_id \$session_id -as_item_id \$response_item_id -section_id \$section_id -subject_id \$user_id -response \$response_to_item(\$response_item_id) -max_points \$points -allow_overwrite_p \$display(back_button_p)
+ set response \$response_to_item(\$response_item_id)
+
+ if { \$item_type == \"fu\" } {
+ set response \[list \$response_to_item(\$response_item_id) \$response_to_item(\${response_item_id}.tmpfile) \$response_to_item(\${response_item_id}.content-type)\]
+ }
+
+ as::item_type_\$item_type\\::process -type_id \$item_type_id -session_id \$session_id -as_item_id \$response_item_id -section_id \$section_id -subject_id \$user_id -response \$response -max_points \$points -allow_overwrite_p \$display(back_button_p)
}
if {\$section_order != \$new_section_order} {
@@ -451,7 +466,14 @@
set item_type [string range $item_type end-1 end]
set points [ad_decode $points "" 0 $points]
- as::item_type_$item_type\::process -type_id $item_type_id -session_id $session_id -as_item_id $response_item_id -section_id $section_id -subject_id $user_id -response "" -max_points $points -allow_overwrite_p $display(back_button_p)
+ set response \$response_to_item(\$response_item_id)\
+
+ if { \$item_type == \"fu\" } {
+ set response \[list \$response_to_item(\$response_item_id) \$response_to_item(\${response_item_id}.tmpfile) \$response_to_item(\${response_item_id}.content-type)\]
+ }
+
+ as::item_type_\$item_type\\::process -type_id \$item_type_id -session_id \$session_id -as_item_id \$response_item_id -section_id \$section_id -subject_id \$user_id -response \$response -max_points \$points -allow_overwrite_p \$display(back_button_p)
+
}
if {$section_order != $new_section_order} {
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-add-display-f.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-add-display-f.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-add-display-f.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-add-fu.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-add-fu.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-add-fu.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-edit-display-f.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-edit-display-f.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-edit-display-f.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-edit-fu.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-edit-fu.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/assessment/www/asm-admin/item-edit-fu.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/assessment/www/asm-admin/item-edit-mc.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-edit-mc.tcl,v
diff -u -r1.8.2.1 -r1.8.2.2
--- openacs-4/packages/assessment/www/asm-admin/item-edit-mc.tcl 31 May 2005 23:13:02 -0000 1.8.2.1
+++ openacs-4/packages/assessment/www/asm-admin/item-edit-mc.tcl 4 Jul 2005 15:02:24 -0000 1.8.2.2
@@ -149,7 +149,7 @@
-numeric_value \"\" \\
-text_value \"\" \\
-content_value \"\" \\
- -feedback_text \"\"
+ -feedback_text \"\" \\
-selected_p \"\" \\
-correct_answer_p \[ad_decode \[info exists correct(\$i)\] 0 f t\] \\
-sort_order \$count \\
Index: openacs-4/packages/assessment/www/asm-admin/item-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-edit.tcl,v
diff -u -r1.6 -r1.6.2.1
--- openacs-4/packages/assessment/www/asm-admin/item-edit.tcl 15 Apr 2005 17:26:46 -0000 1.6
+++ openacs-4/packages/assessment/www/asm-admin/item-edit.tcl 4 Jul 2005 15:02:24 -0000 1.6.2.1
@@ -33,6 +33,9 @@
set item_type [string range [db_string item_type {}] end-1 end]
set display_type [string range [db_string display_type {}] end-1 end]
+if {[string eq $display_type "_f"]} {
+ set display_type f
+}
ad_form -name item_edit -mode display -action item-edit-general -export { assessment_id section_id as_item_id } -form {
{title:text(textarea) {label "[_ assessment.Title]"} {html {rows 3 cols 80}} {value $title} {help_text "[_ assessment.item_Title_help]"}}
| |