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.80 -r1.81 --- openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml 2 Feb 2008 21:15:46 -0000 1.80 +++ openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml 22 Feb 2008 23:42:32 -0000 1.81 @@ -669,4 +669,29 @@ When this will be executed? Yes Yesterday + Action Performed + Reviewer Comments + No reviewer comments have been added to this assessment yet. + Admin + Item Question + Points + Multiple Choice + Correct Answer + Or use choices from an existing question + Short Answer + Long Answer + File Upload + Points for Question
(Optional)
+ Feedback right
(Optional)
+ Feedback wrong
(Optional)
+ Advanced Options + users in community + complete responses + incomplete responses + Publish failed. Following section(s) have no questions: %empty_sections% + this assessment is anonymous + Untaken + Finish + Take + Retake Index: openacs-4/packages/assessment/lib/actions-results.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/actions-results.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/assessment/lib/actions-results.adp 21 Feb 2005 14:32:55 -0000 1.1 +++ openacs-4/packages/assessment/lib/actions-results.adp 22 Feb 2008 23:42:32 -0000 1.2 @@ -1,4 +1,4 @@ -

Actions Performed:

+

#assessment.Actions_Performed#:

@actions.user_message@ Index: openacs-4/packages/assessment/lib/comments-chunk.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/comments-chunk.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/assessment/lib/comments-chunk.adp 2 Feb 2008 21:15:46 -0000 1.5 +++ openacs-4/packages/assessment/lib/comments-chunk.adp 22 Feb 2008 23:42:32 -0000 1.6 @@ -1,19 +1,19 @@ -

Reviewer Comments

+

#assessment.Reviewer_Comments#

@comments.title@
@comments.html_content;noquote@
-
- @comments.author@ (on @comments.creation_date_ansi@)
+
- @comments.author@ (@comments.creation_date_ansi@)
-

No reviewer comments have been added to this assessment yet.

+

#assessment.No_reviewer_comments_have_been_added_to_this_assessment_yet#

- Add comment + #assessment.Add_Comment#
Index: openacs-4/packages/assessment/lib/section-links.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/section-links.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/assessment/lib/section-links.adp 26 Jan 2007 20:29:59 -0000 1.2 +++ openacs-4/packages/assessment/lib/section-links.adp 22 Feb 2008 23:42:32 -0000 1.3 @@ -1,31 +1,9 @@

@assessment_data.title;noquote@

- - \ No newline at end of file Index: openacs-4/packages/assessment/tcl/as-session-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-session-procs.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/assessment/tcl/as-session-procs.tcl 15 May 2007 20:14:17 -0000 1.8 +++ openacs-4/packages/assessment/tcl/as-session-procs.tcl 22 Feb 2008 23:42:33 -0000 1.9 @@ -90,6 +90,10 @@ content::item::delete -item_id $comment_id } } + + db_dml delete_choices {} + db_dml delete_session_items {} + set session_item_id [content::revision::item_id -revision_id $session_id] content::revision::delete -revision_id $session_id Index: openacs-4/packages/assessment/tcl/as-session-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-session-procs.xql,v diff -u -r1.3 -r1.4 --- openacs-4/packages/assessment/tcl/as-session-procs.xql 15 May 2007 20:14:17 -0000 1.3 +++ openacs-4/packages/assessment/tcl/as-session-procs.xql 22 Feb 2008 23:42:33 -0000 1.4 @@ -35,6 +35,18 @@ + + +DELETE FROM as_session_choices WHERE session_id = :session_id; + + + + + +delete from as_session_items where session_id = :session_id; + + + select g.comment_id Index: openacs-4/packages/assessment/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/index.tcl,v diff -u -r1.18 -r1.19 --- openacs-4/packages/assessment/www/index.tcl 15 May 2007 20:14:17 -0000 1.18 +++ openacs-4/packages/assessment/www/index.tcl 22 Feb 2008 23:42:33 -0000 1.19 @@ -59,7 +59,7 @@ display_template {@sessions.title;noquote@} } session { - label {[_ assessment.Sessions]} + label "[_ assessment.Sessions]" link_url_eval {[export_vars -base "sessions" {assessment_id}]} } } -main_class { @@ -68,7 +68,7 @@ # get the information of all assessments store in the database db_multirow -extend { session } sessions answered_asssessments {} { - set session {Sessions} + set session [_ assessment.Sessions] } set admin_p [ad_permission_p $package_id create] Index: openacs-4/packages/assessment/www/asm-admin/item-add.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add.adp,v diff -u -r1.7 -r1.8 --- openacs-4/packages/assessment/www/asm-admin/item-add.adp 2 Feb 2008 21:15:46 -0000 1.7 +++ openacs-4/packages/assessment/www/asm-admin/item-add.adp 22 Feb 2008 23:42:33 -0000 1.8 @@ -4,7 +4,7 @@
-Question +#assessment.Question#
@@ -16,7 +16,7 @@ * @@ -53,7 +53,7 @@ @@ -88,7 +88,7 @@ @@ -123,7 +123,7 @@ @@ -154,7 +154,7 @@ @@ -196,12 +196,12 @@
- Multiple Choice + #assessment.Multiple_Choice#

#assessment.item_type_multiple_choice_help#


-

Correct
Answer

+

#assessment.Correct_Answer#
@formgroup.widget;noquote@ @@ -214,30 +214,30 @@
-

Or use choices from an existing question
+

#assessment.Or_use_choices_from_an_existing_question#


-Short Answer +#assessment.Short_Answer#

#assessment.item_type_short_answer_help#

-Long Answer +#assessment.Long_Answer#

#assessment.item_type_long_answer_help#


-File Upload +#assessment.File_Upload#

#assessment.item_type_file_upload_help#

Index: openacs-4/packages/assessment/www/asm-admin/item-edit-general.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-edit-general.adp,v diff -u -r1.6 -r1.7 --- openacs-4/packages/assessment/www/asm-admin/item-edit-general.adp 2 Feb 2008 21:15:46 -0000 1.6 +++ openacs-4/packages/assessment/www/asm-admin/item-edit-general.adp 22 Feb 2008 23:42:33 -0000 1.7 @@ -14,7 +14,7 @@ @@ -49,7 +49,7 @@ @@ -86,7 +86,7 @@ @@ -122,7 +122,7 @@ @@ -159,7 +159,7 @@ @@ -212,7 +212,7 @@
-

Correct
Answer

+

#assessment.Correct_Answer#
@@ -255,4 +255,4 @@

-Advanced Options +#assessment.Advanced_Options# Index: openacs-4/packages/assessment/www/asm-admin/results-users.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/results-users.adp,v diff -u -r1.6 -r1.7 --- openacs-4/packages/assessment/www/asm-admin/results-users.adp 7 Oct 2007 22:36:54 -0000 1.6 +++ openacs-4/packages/assessment/www/asm-admin/results-users.adp 22 Feb 2008 23:42:33 -0000 1.7 @@ -3,7 +3,7 @@ @context;noquote@ -

@count_all_users@ users in community, @count_complete@ complete responses, @count_incomplete@ incomplete responses

+

@count_all_users@ #assessment.users_in_community#, @count_complete@ #assessment.complete_responses#, @count_incomplete@ #assessment.incomplete_responses#

Index: openacs-4/packages/assessment/www/asm-admin/toggle-publish.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/toggle-publish.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/assessment/www/asm-admin/toggle-publish.tcl 7 Oct 2007 22:36:54 -0000 1.3 +++ openacs-4/packages/assessment/www/asm-admin/toggle-publish.tcl 22 Feb 2008 23:42:33 -0000 1.4 @@ -24,7 +24,7 @@ db_dml toggle_publish "" set message "" } else { - set message "Publish failed. Following section(s) have no questions: ${empty_sections}" + set message [_ assessment.Publish_failed_Following_section_s_have_no_questions] } if {$return_url eq ""} {