Index: openacs-4/packages/assessment/assessment.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/assessment.info,v diff -u -r1.7 -r1.8 --- openacs-4/packages/assessment/assessment.info 26 Nov 2004 20:51:24 -0000 1.7 +++ openacs-4/packages/assessment/assessment.info 5 Dec 2004 17:18:01 -0000 1.8 @@ -7,7 +7,7 @@ f f - + oracle postgresql @@ -20,10 +20,11 @@ 0 E-LANE Create assessments and evalueate. - + + Index: openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml,v diff -u -r1.8 -r1.9 --- openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml 3 Dec 2004 10:25:34 -0000 1.8 +++ openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml 5 Dec 2004 17:17:12 -0000 1.9 @@ -1,6 +1,8 @@ + Above + Absolute Size Add existing question Add existing question to section "%section_title%" Add existing section @@ -11,28 +13,51 @@ Add to assessment "%assessment_data.title%" Add to section "%section_title%" Question Catalog Administration + Categories Administration Administration All allow multiple + Allow Negative allow %assessment_data.number_tries% + Alphabetical Anonymous Responses Anonymous respondents allowed + Answer Alignment Answer Choices Assessment Assessment Administration Assessment Imported Correctly Title Attempt + Below + Beside-Left + Beside-Right + Bottom + Box Orientation By user Cancel and Return to Assessment + Choice + Choice Orientation Consent Page Continue with Remove Copy Copy this assessment - Correct Answer + Correct Answer Choice - Created by CSV file + Data Type + Boolean + File + Date + Exponential + Integer + Numerical + Text + Time + Short Text Default Path + Default: Selected + Default Value Definition Delete Delete this assessment @@ -51,14 +76,34 @@ Export Extreme Actions: Feedback + Feedback right + Feedback wrong + Field Code Finish Time Finished From: Question name hidden + Horizontal + HTML Options Import QTI ZIP File Import Results Instructions + Increasing + Checkboxes + Radiobuttons + Selectbox + Textarea + Textbox + Item Type + Database Question + File + Multiple Choice + Open Question + Short Answer + Instructions Items + Label Orientation + Left - Lets you use this assessment as a template to create a new assessment. Only %assessment_data.number_tries% tries allowed Make anonymous @@ -82,18 +127,25 @@ No Immediate retry allowed None + Total Number of displayed Choices + Number of displayed Correct Choices Number of Tries allowed + Numerical , on %creation_date% One Assessment: %assessment_data.title% Only correct Responses Only incorrect Responses + Order of Entry + Order Type Out of + Percent Score points Preview Question Question not answered Questions Randomized + Randomized Registrated respondents required regarding this survey Remove: @@ -108,6 +160,7 @@ Old responses displayed Reuse Responses Review Assessment + Right Rule-based Branching Score SECTION @@ -129,13 +182,15 @@ Subject Subject Name Submit + Subtext Summary This question will be corrected by the teacher Seconds allowed for completion %assessment_data.time_for_response% seconds maximum response time Time spent Retry allowed after %assessment_data.wait_between_tries% minutes Title + Top Total score Unlimited time for response Unlimited number of tries allowed @@ -144,6 +199,7 @@ User ID Users may edit their responses Users may not edit their responses + Vertical View Responses: View Results View results Index: openacs-4/packages/assessment/lib/section-items.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/section-items.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/assessment/lib/section-items.adp 15 Nov 2004 12:06:52 -0000 1.2 +++ openacs-4/packages/assessment/lib/section-items.adp 5 Dec 2004 17:17:11 -0000 1.3 @@ -5,7 +5,7 @@ - #assessment.Add_New# + #assessment.Add_New# #assessment.Add_Existing# @@ -21,13 +21,13 @@ @items.rownum@. * -#assessment.Edit# +#assessment.Edit# #assessment.disabled# #assessment.Copy# -#assessment.Add_New# +#assessment.Add_New# #assessment.Add_Existing# @@ -73,7 +73,7 @@ - #assessment.Add_New# + #assessment.Add_New# #assessment.Add_Existing# Index: openacs-4/packages/assessment/tcl/as-assessment-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-assessment-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/assessment/tcl/as-assessment-procs.tcl 26 Nov 2004 20:48:37 -0000 1.6 +++ openacs-4/packages/assessment/tcl/as-assessment-procs.tcl 5 Dec 2004 17:17:12 -0000 1.7 @@ -129,7 +129,7 @@ copy_sections -assessment_id $assessment_rev_id -new_assessment_id $new_rev_id } - return $assessment_rev_id + return $new_rev_id } ad_proc -public as::assessment::data { Index: openacs-4/packages/assessment/tcl/as-item-choice-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-item-choice-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/assessment/tcl/as-item-choice-procs.tcl 22 Nov 2004 11:59:22 -0000 1.3 +++ openacs-4/packages/assessment/tcl/as-item-choice-procs.tcl 5 Dec 2004 17:17:12 -0000 1.4 @@ -12,10 +12,10 @@ {-data_type ""} {-numeric_value ""} {-text_value ""} - {-boolean_value:boolean ""} + {-boolean_value ""} {-content_value ""} {-feedback_text ""} - {-selected_p:boolean ""} + {-selected_p ""} {-correct_answer_p ""} {-sort_order ""} {-percent_score ""} Index: openacs-4/packages/assessment/tcl/as-item-form-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-item-form-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/assessment/tcl/as-item-form-procs.tcl 2 Dec 2004 11:08:40 -0000 1.6 +++ openacs-4/packages/assessment/tcl/as-item-form-procs.tcl 5 Dec 2004 17:17:12 -0000 1.7 @@ -35,13 +35,13 @@ } "textarea" { - db_0or1row html_rows_cols "SELECT abs_size FROM as_item_display_tax WHERE item_id=:item_display_id" + db_0or1row html_rows_cols "SELECT html_display_options FROM as_item_display_tax WHERE item_id=:item_display_id" template::element::create $form $element_name \ -datatype text \ -widget textarea \ -label $title \ -value $user_value \ - -html $abs_size \ + -html $html_display_options \ -nospell \ -required_p $required_p } @@ -50,7 +50,8 @@ set widget "text(radio)" set item_item_id [db_string cr_item_from_revision "select item_id from cr_revisions where revision_id=:item_id"] set item_mc_id [db_string item_item_type "SELECT related_object_id FROM cr_item_rels WHERE relation_tag = 'as_item_type_rel' AND item_id=:item_item_id"] - set mc_id [db_string item_to_rev "SELECT revision_id FROM cr_revisions WHERE item_id=:item_mc_id"] + set mc_id [db_string item_to_rev "SELECT latest_revision FROM cr_items WHERE item_id=:item_mc_id"] + ## set mc_id [db_string item_to_rev "SELECT revision_id FROM cr_revisions WHERE item_id=:item_mc_id"] set optionlist [list] db_foreach item_choices_2 "" { #for multiple choice item with multimedia @@ -75,7 +76,8 @@ "checkbox" { set item_item_id [db_string cr_item_from_revision "select item_id from cr_revisions where revision_id=:item_id"] set item_mc_id [db_string item_item_type "SELECT related_object_id FROM cr_item_rels WHERE relation_tag = 'as_item_type_rel' AND item_id=:item_item_id"] - set mc_id [db_string item_to_rev "SELECT revision_id FROM cr_revisions WHERE item_id=:item_mc_id"] + set mc_id [db_string item_to_rev "SELECT latest_revision FROM cr_items WHERE item_id=:item_mc_id"] + ## set mc_id [db_string item_to_rev "SELECT revision_id FROM cr_revisions WHERE item_id=:item_mc_id"] set choices [list] set optionlist [list] db_foreach item_choices_2 "" {