Index: openacs-4/packages/simulation/catalog/simulation.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/catalog/simulation.en_US.ISO-8859-1.xml,v diff -u -r1.5.2.1 -r1.5.2.2 --- openacs-4/packages/simulation/catalog/simulation.en_US.ISO-8859-1.xml 31 Oct 2006 10:13:02 -0000 1.5.2.1 +++ openacs-4/packages/simulation/catalog/simulation.en_US.ISO-8859-1.xml 10 Dec 2006 21:05:30 -0000 1.5.2.2 @@ -1,5 +1,5 @@ - + Abort the session Add a template @@ -12,6 +12,8 @@ and %rest_length% more Assigned action Attachments + Back to Messages + Back to Portfolio Body Cancel Case @@ -36,10 +38,13 @@ Delete Delete this case Delete this template + Deleted Messages Description Display Document + Document was successfully moved to recycle bin. Document Portfolio + Document was successfully undeleted. Documents Edit Edit this template @@ -64,6 +69,7 @@ Join a Simulation join case join role + Leave blank to return to the original name Live Simulations Log in <a href="%link_target%">Click here</a> to enroll now. @@ -233,6 +239,7 @@ Max # users Message message + Message was moved to trash. [SimPlay] New message in simulation %simulation_name%: %subject% You have just received the following message in simulation %simulation_name%: @@ -247,10 +254,11 @@ Please visit %simplay_url% to continue playing the simulation. Thank you. + Message was undeleted Messages messages - Mime type - + Mime type + mime type Move user @@ -272,7 +280,8 @@ Re: Ready Received - Recent Messages + Recent Incoming Messages + Recycle Bin Related Tasks Dear %user_name%, this email is sent to you as a reminder that you are participating in simulation %simulation_name% that will start on %simulation_start_date%. Here is the @@ -281,9 +290,12 @@ %simulation_description% Simulation %simulation_name% starts on %simulation_start_date% Remove user + Rename + Rename Document Respond Return to SimPlay Role + The role details were successfully updated Roles Send a message to Send new message @@ -321,6 +333,7 @@ tasks Template Template Description + The template was marked as ready for use. Template Name Thank you! Time @@ -333,6 +346,7 @@ href="%document_upload_url%">upload a document</a> to your portfolio before writing the message. Type + Undelete Unknown type Unsubscribe Upload a document Index: openacs-4/packages/simulation/lib/portfolio.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/lib/portfolio.tcl,v diff -u -r1.10.2.3 -r1.10.2.4 --- openacs-4/packages/simulation/lib/portfolio.tcl 2 Nov 2006 10:44:12 -0000 1.10.2.3 +++ openacs-4/packages/simulation/lib/portfolio.tcl 10 Dec 2006 21:05:31 -0000 1.10.2.4 @@ -9,7 +9,7 @@ role_id {} deleted_p { default_value 0 } show_actions_p { default_value 1 } - portfolio_orderby { required_p 0 } + portfolio_orderby { default_value document_title } } @@ -45,7 +45,7 @@ document_title { label {[_ simulation.Document]} link_url_col document_url - orderby upper(cr.title) + orderby "upper(COALESCE(scrom.title, cr.title))" } publish_date { label {[_ simulation.Upload_date]} @@ -102,8 +102,7 @@ db_multirow -extend $extend documents select_documents " select scrom.object_id as document_id, ci.name as document_name, - scrom.title as scrom_title, - cr.title as document_title, + COALESCE(scrom.title, cr.title) as document_title, wr.pretty_name as role_name, cr.publish_date as publish_date, cr.mime_type, @@ -132,10 +131,6 @@ set delete [_ simulation.Delete] } - if { ![empty_string_p $scrom_title] } { - set document_title $scrom_title - } - set undelete_p $deleted_p set delete_url [export_vars -base "[apm_package_url_from_id $package_id]simplay/portfolio-delete" { case_id role_id document_id undelete_p}] Index: openacs-4/packages/simulation/tcl/sim-case-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/tcl/sim-case-procs.tcl,v diff -u -r1.8.2.1 -r1.8.2.2 --- openacs-4/packages/simulation/tcl/sim-case-procs.tcl 31 Oct 2006 10:13:02 -0000 1.8.2.1 +++ openacs-4/packages/simulation/tcl/sim-case-procs.tcl 10 Dec 2006 21:05:31 -0000 1.8.2.2 @@ -98,7 +98,7 @@ @author Peter Marklund } { return [db_list_of_lists attachment_for_role { - select cr.title as document_title, + select COALESCE(scrom.title, cr.title) as document_title, scrom.object_id as document_id from sim_case_role_object_map scrom, cr_items ci, Index: openacs-4/packages/simulation/www/control-bar.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/www/control-bar.adp,v diff -u -r1.1 -r1.1.4.1 --- openacs-4/packages/simulation/www/control-bar.adp 30 Nov 2004 21:09:03 -0000 1.1 +++ openacs-4/packages/simulation/www/control-bar.adp 10 Dec 2006 21:05:31 -0000 1.1.4.1 @@ -62,4 +62,8 @@
  • #simulation.Colophon#
  • + + +
  • #notifications.Notifications#
  • +
    \ No newline at end of file Index: openacs-4/packages/simulation/www/control-bar.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/www/control-bar.tcl,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/packages/simulation/www/control-bar.tcl 31 Oct 2006 10:13:03 -0000 1.2.2.1 +++ openacs-4/packages/simulation/www/control-bar.tcl 10 Dec 2006 21:05:31 -0000 1.2.2.2 @@ -20,4 +20,7 @@ set simbuild_p [permission::permission_p -object_id $package_id -privilege sim_template_read] set siminst_p [permission::permission_p -object_id $package_id -privilege sim_inst] +set user [ad_conn user_id] +set notification_url "/notifications" + set curr_url [ad_conn url] \ No newline at end of file Index: openacs-4/packages/simulation/www/siminst/map-tasks.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/www/siminst/map-tasks.tcl,v diff -u -r1.16 -r1.16.2.1 --- openacs-4/packages/simulation/www/siminst/map-tasks.tcl 30 Nov 2004 21:09:17 -0000 1.16 +++ openacs-4/packages/simulation/www/siminst/map-tasks.tcl 10 Dec 2006 21:05:32 -0000 1.16.2.1 @@ -97,7 +97,7 @@ {options $prop_options} \ {help_text "Select from existing attachments or add a new prop and refresh this page."}]] - } + } lappend actions $row(action_id) } Index: openacs-4/packages/simulation/www/simplay/message.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/www/simplay/message.tcl,v diff -u -r1.30 -r1.30.2.1 --- openacs-4/packages/simulation/www/simplay/message.tcl 30 Nov 2004 21:09:17 -0000 1.30 +++ openacs-4/packages/simulation/www/simplay/message.tcl 10 Dec 2006 21:05:32 -0000 1.30.2.1 @@ -31,7 +31,7 @@ foreach one_role_id [workflow::role::get_ids -workflow_id $workflow_id] { set character_title [simulation::role::get_element -role_id $one_role_id -element character_title] set pretty_name [simulation::role::get_element -role_id $one_role_id -element pretty_name] - lappend to_role_options [list "$pretty_name ($character_title)" $one_role_id] + lappend to_role_options [list "$pretty_name ($character_title)" $one_role_id] } set attachment_options [simulation::case::attachment_options -case_id $case_id -role_id $role_id] @@ -48,6 +48,8 @@ -array content set sender_role_id $content(from_role_id) + set recipient_role_id $sender_role_id + set subject "[_ simulation.Re] $content(title)" set sender_pretty_name [simulation::role::get_element -role_id $sender_role_id -element pretty_name] set sender_character_title [simulation::role::get_element -role_id $sender_role_id -element character_title]