Index: openacs-4/packages/survey/www/admin/responses.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/survey/www/admin/responses.tcl,v diff -u -r1.8.4.1 -r1.8.4.2 --- openacs-4/packages/survey/www/admin/responses.tcl 17 Dec 2019 16:28:44 -0000 1.8.4.1 +++ openacs-4/packages/survey/www/admin/responses.tcl 9 Feb 2020 16:10:31 -0000 1.8.4.2 @@ -29,7 +29,7 @@ set return_html "" # mbryzek - 3/27/2000 -# We need a way to limit the summary page to 1 response from +# We need a way to limit the summary page to 1 response from # each user. We use views to select out only the latest response # from any given user @@ -41,46 +41,46 @@
" switch -- $abstract_data_type { - "date" - - "text" - - "shorttext" { - set href [export_vars -base view-text-responses {question_id}] - append results [subst {
\n}] - } - - "boolean" { + "date" - + "text" - + "shorttext" { + set href [export_vars -base view-text-responses {question_id}] + append results [subst {\n}] + } - db_foreach survey_boolean_summary "" { - append results "[survey::decode_boolean_answer -response $boolean_answer -question_id $question_id]: $n_responses[_ survey.Mean] $mean
[_ survey.Standard_Dev]: $standard_deviation
\n"
-
+ db_1row survey_number_average ""
+ append results "
[_ survey.Mean] $mean
[_ survey.Standard_Dev]: $standard_deviation
\n"
+
}
- "choice" {
- db_foreach survey_section_question_choices "" {
- set href [export_vars -base response-drill-down {question_id choice_id}]
- append results [subst {$label: $n_responses
\n}]
- }
- }
- "blob" {
- db_foreach survey_attachment_summary {} {
- set href [export_vars -base ../view-attachment {response_id question_id}]
- append results [subst {$title
}]
- }
- }
+ "choice" {
+ db_foreach survey_section_question_choices "" {
+ set href [export_vars -base response-drill-down {question_id choice_id}]
+ append results [subst {$label: $n_responses
\n}]
+ }
+ }
+ "blob" {
+ db_foreach survey_attachment_summary {} {
+ set href [export_vars -base ../view-attachment {response_id question_id}]
+ append results [subst {$title
}]
+ }
+ }
}
append results "