Index: openacs-4/packages/imsld/catalog/imsld.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/catalog/imsld.en_US.ISO-8859-1.xml,v diff -u -r1.34.4.2 -r1.34.4.3 --- openacs-4/packages/imsld/catalog/imsld.en_US.ISO-8859-1.xml 4 Jun 2007 14:00:04 -0000 1.34.4.2 +++ openacs-4/packages/imsld/catalog/imsld.en_US.ISO-8859-1.xml 14 Jun 2007 14:31:29 -0000 1.34.4.3 @@ -35,7 +35,9 @@ Confirm: New IMS-LD Confirm these changes Context info + Create a new group Create New? + Create new create new run Create role instance Creating default Run... @@ -69,6 +71,7 @@ go back Go to UoL page Group members + Group name Groups in role Hide panel @@ -168,6 +171,8 @@ Couldn't determine if this is a well formed IMS-LD: %message% Creaginting new IMS-LD Create a new instance of a role + Current Unit of Learning does not allow creation of multiple instances of this role. + Current UoL does not allow to include them in more than one subroles of the role. Dear %recepient_name% <br> %sender_name has% triggered this notification. Please do not replay to this email. <br> Email Propery Identifier @@ -227,6 +232,7 @@ <li> desc (no file associated) </li> manifest namespace is not imscp Max. number of students per group: %max_persons% + Members $not_allowed_name are already members of other subroles of role $parent_role_name. Min. number of students per group: %min_persons% Monitoring One Activity More than one service in environment %identifier%. Just one used (the first one) @@ -236,6 +242,10 @@ No information found in the manifest file No parent folder found No parent folder found for the ims-ld in the community %community_id%. Please report this error to the administrator. + Number of members does not reach the minimum allowed number of users for this role. + There must be at least $min_persons members. + Number of members exceded the allowed number for this role. + You must not select more than $max_persons members. Number of Organizations: On Completion Identifier Organization Identifier @@ -415,6 +425,7 @@ Run(UoL) Name: Runs (IMS-LD instances) select user... + Select a group... Select a role... Select a role Select role... Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/imsld/lib/imsld-master.adp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/imsld/lib/imsld-master.tcl'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/imsld/www/activity-frame.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/activity-frame.adp,v diff -u -r1.13.4.2 -r1.13.4.3 --- openacs-4/packages/imsld/www/activity-frame.adp 4 Jun 2007 14:00:04 -0000 1.13.4.2 +++ openacs-4/packages/imsld/www/activity-frame.adp 14 Jun 2007 14:31:29 -0000 1.13.4.3 @@ -1,13 +1,6 @@ - - - - - - - - - - + +init_activity() + - - - + #imsld.Hide# @@ -66,87 +49,12 @@

#imsld.navigate#

- - - - - - - - - + + Index: openacs-4/packages/imsld/www/environment-frame.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/environment-frame.adp,v diff -u -r1.4.4.1 -r1.4.4.2 --- openacs-4/packages/imsld/www/environment-frame.adp 30 May 2007 08:06:17 -0000 1.4.4.1 +++ openacs-4/packages/imsld/www/environment-frame.adp 14 Jun 2007 14:31:29 -0000 1.4.4.2 @@ -1,22 +1,11 @@ - - - - + + - - - - + @environments;noquote@ - - - + + Index: openacs-4/packages/imsld/www/environment-frame.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/environment-frame.tcl,v diff -u -r1.7.4.1 -r1.7.4.2 --- openacs-4/packages/imsld/www/environment-frame.tcl 30 May 2007 08:06:17 -0000 1.7.4.1 +++ openacs-4/packages/imsld/www/environment-frame.tcl 14 Jun 2007 14:31:29 -0000 1.7.4.2 @@ -13,13 +13,13 @@ dom createDocument ul doc set dom_root [$doc documentElement] - -#set environments_node_ul [$doc createElement ul] +$dom_root setAttribute class "mktree" set environments_node_li [$doc createElement li] +$environments_node_li setAttribute class "liOpen" set text [$doc createTextNode "[_ imsld.Context_info]"] $environments_node_li appendChild $text + set environments_node [$doc createElement ul] -$environments_node setAttribute class "mktree" # FIX-ME: if the ul is empty, the browser shows the ul incorrectly set text [$doc createTextNode ""] @@ -33,9 +33,6 @@ -dom_doc $doc $dom_root appendChild $environments_node_li -set environments_node_li [$doc createElement li] -$environments_node_li setAttribute class "liOpen" - $environments_node_li appendChild $environments_node $dom_root appendChild $environments_node_li Index: openacs-4/packages/imsld/www/imsld-tree.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/imsld-tree.adp,v diff -u -r1.13.4.2 -r1.13.4.3 --- openacs-4/packages/imsld/www/imsld-tree.adp 4 Jun 2007 14:00:04 -0000 1.13.4.2 +++ openacs-4/packages/imsld/www/imsld-tree.adp 14 Jun 2007 14:31:29 -0000 1.13.4.3 @@ -1,18 +1,9 @@ - - - - + + - + - - - #imsld.Exit#
@@ -34,7 +25,6 @@ @user_message@ - - Index: openacs-4/packages/imsld/www/imsld-tree.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/imsld-tree.tcl,v diff -u -r1.16.4.1 -r1.16.4.2 --- openacs-4/packages/imsld/www/imsld-tree.tcl 30 May 2007 08:06:17 -0000 1.16.4.1 +++ openacs-4/packages/imsld/www/imsld-tree.tcl 14 Jun 2007 14:31:29 -0000 1.16.4.2 @@ -72,7 +72,6 @@ set user_message "" set next_activity_id [imsld::get_next_activity_list -run_id $run_id -user_id $user_id] - set remaining_activities [llength [join $next_activity_id]] if {!$remaining_activities} { Index: openacs-4/packages/imsld/www/admin/imsld-admin-roles.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/imsld-admin-roles.adp,v diff -u -r1.3.4.1 -r1.3.4.2 --- openacs-4/packages/imsld/www/admin/imsld-admin-roles.adp 30 May 2007 08:06:17 -0000 1.3.4.1 +++ openacs-4/packages/imsld/www/admin/imsld-admin-roles.adp 14 Jun 2007 14:31:29 -0000 1.3.4.2 @@ -2,43 +2,31 @@ @page_title;noquote@ @context;noquote@ - - + - -
-
+
+
-
+
-
+
Index: openacs-4/packages/imsld/www/admin/imsld-create-instance.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/imsld-create-instance.tcl,v diff -u -r1.3.4.1 -r1.3.4.2 --- openacs-4/packages/imsld/www/admin/imsld-create-instance.tcl 30 May 2007 08:06:17 -0000 1.3.4.1 +++ openacs-4/packages/imsld/www/admin/imsld-create-instance.tcl 14 Jun 2007 14:31:29 -0000 1.3.4.2 @@ -22,7 +22,7 @@ if { !([string eq $number_of_groups "0"] || [string eq $create_new_p "t"] ) } { - set mensaje "

Current Unit of Learning does not allow creation of multiple instances of this role.

+ set mensaje "

[_ imsld.lt_Current_Unit_of_Learn]

[_ imsld.Go_back]" ad_return_complaint 1 $mensaje ad_script_abort Index: openacs-4/packages/imsld/www/admin/imsld-groups.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/imsld-groups.tcl,v diff -u -r1.4.4.2 -r1.4.4.3 --- openacs-4/packages/imsld/www/admin/imsld-groups.tcl 4 Jun 2007 14:00:04 -0000 1.4.4.2 +++ openacs-4/packages/imsld/www/admin/imsld-groups.tcl 14 Jun 2007 14:31:29 -0000 1.4.4.3 @@ -11,33 +11,32 @@ {group_instance 0} role:optional } -set lista [list [list "Select a group..." 0]] +set lista [list [list "[_ imsld.Select_a_group]" 0]] set lista_aux [lindex [db_list_of_lists get_groups_list {}] 0] lappend lista $lista_aux -set actions [list "Create new" [export_vars -base imsld-create-instance {imsld_id run_id role lista}] "Create a new group"] +set actions [list "[_ imsld.Create_new]" [export_vars -base imsld-create-instance {imsld_id run_id role lista}] "[_ imsld.Create_a_new_group]"] template::list::create \ -name role_groups \ -multirow role_groups \ -key role_groups \ + -pass_properties { imsld_id run_id role } \ -actions $actions \ -elements { group_name { - label {Group name} + label {[_ imsld.Group_name]} link_url_col {manage_roles} } delete { label {} - display_template {@role_groups.delete;noquote@} + display_template {[_ imsld.Delete]} } } db_multirow -extend { manage_roles delete } role_groups get_groups_list {} { set manage_roles [export_vars -base imsld-admin-roles {imsld_id run_id role {group_instance $group_id}}] - set delete "\"[_" - } Index: openacs-4/packages/imsld/www/admin/imsld-role-confirm.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/imsld-role-confirm.tcl,v diff -u -r1.5.4.1 -r1.5.4.2 --- openacs-4/packages/imsld/www/admin/imsld-role-confirm.tcl 30 May 2007 08:06:17 -0000 1.5.4.1 +++ openacs-4/packages/imsld/www/admin/imsld-role-confirm.tcl 14 Jun 2007 14:31:29 -0000 1.5.4.2 @@ -30,16 +30,14 @@ } if { ![string eq "" $min_persons] && ([llength $members_list] < $min_persons)} { - set mensaje "

Number of members does not reach the minimum allowed number of users for this role. - There must be at least $min_persons members.

+ set mensaje "

[_ imsld.lt_Number_of_members_doe]

[_ imsld.Go_back]" ad_return_complaint 1 $mensaje ad_script_abort } if {![string eq "" $max_persons] && ([llength $members_list] > $max_persons)} { - set mensaje "

Number of members exceded the allowed number for this role. - You must not select more than $max_persons members.

+ set mensaje "

[_ imsld.lt_Number_of_members_exc]

[_ imsld.Go_back]" ad_return_complaint 1 $mensaje ad_script_abort @@ -62,8 +60,8 @@ - set mensaje "

Members $not_allowed_name are already members of other subroles of role $parent_role_name.

-

Current UoL does not allow to include them in more than one subroles of the role.

+ set mensaje "

[_ imsld.lt_Members_not_allowed_n]

+

[_ imsld.lt_Current_UoL_does_not_]

[_ imsld.Go_back]" ad_return_complaint 1 $mensaje ad_script_abort Index: openacs-4/packages/imsld/www/admin/imsld-role-members.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/imsld-role-members.adp,v diff -u -r1.4.4.1 -r1.4.4.2 --- openacs-4/packages/imsld/www/admin/imsld-role-members.adp 30 May 2007 08:06:17 -0000 1.4.4.1 +++ openacs-4/packages/imsld/www/admin/imsld-role-members.adp 14 Jun 2007 14:31:29 -0000 1.4.4.2 @@ -1,25 +1,25 @@ -
-
+
+

@group_title@

-
+
  • #imsld.lt_Max_number_of_student#
  • #imsld.lt_Min_number_of_student#
-
-
+
+

#imsld.Not_members#

-
+

#imsld.Group_members#

-
+
Index: openacs-4/packages/imsld/www/admin/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/index.adp,v diff -u -r1.2.4.1 -r1.2.4.2 --- openacs-4/packages/imsld/www/admin/index.adp 30 May 2007 08:06:17 -0000 1.2.4.1 +++ openacs-4/packages/imsld/www/admin/index.adp 14 Jun 2007 14:31:29 -0000 1.2.4.2 @@ -2,19 +2,14 @@ @page_title;noquote@ @context;noquote@ - - + + +

#imsld.IMS-LDs_1#

-
+

#imsld.Runs#

-
+
Index: openacs-4/packages/imsld/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/index.tcl,v diff -u -r1.14.4.2 -r1.14.4.3 --- openacs-4/packages/imsld/www/admin/index.tcl 4 Jun 2007 14:00:04 -0000 1.14.4.2 +++ openacs-4/packages/imsld/www/admin/index.tcl 14 Jun 2007 14:31:29 -0000 1.14.4.3 @@ -23,7 +23,12 @@ content::item::set_live_revision -revision_id [content::item::get_best_revision -item_id $set_imsld_id_live] } if { ![string eq "" $set_run_id_live] } { - db_dml make_run_live { *SQL* } + # if there are no users assigned to the run, we mark it as waiting, otherwise mark it active + if { ![llength [imsld::runtime::users_in_run -run_id $set_run_id_live]] } { + db_dml make_run_waiting { *SQL* } + } else { + db_dml make_run_live { *SQL* } + } } set package_id [ad_conn package_id] @@ -47,6 +52,7 @@ -name imslds \ -multirow imslds \ -key imsld_id \ + -pass_properties { return_url } \ -orderby_name imsld_orderby \ -orderby { default_value imsld_title } \ -elements { @@ -62,12 +68,19 @@ } create_run { label {} - display_template {@imslds.create_run;noquote@} + display_template { + [_ imsld.create_new_run] + } } delete { label {} sub_class narrow - display_template {@imslds.delete_template;noquote@} + display_template { + [_ imsld.Deleted] [_ imsld.Make_it_live] + + + [_ imsld.Delete] + } link_html { title "[_ imsld.Delete_IMS_LD]" } } } @@ -76,17 +89,8 @@ set cr_root_folder_id [imsld::cr::get_root_folder -community_id $community_id] -db_multirow -extend { delete_template create_run } imslds get_imslds { *SQL* } { +db_multirow -extend { delete_template create_run } imslds get_imslds { *SQL* } {} - if { [empty_string_p $live_revision] } { - set delete_template "[_ imsld.Deleted] [_ imsld.Make_it_live]" - set create_run "" - } else { - set delete_template "\"[_" - set create_run " [_ imsld.create_new_run] " - } -} - set imsld_package_id [site_node_apm_integration::get_child_package_id \ -package_id [dotlrn_community::get_package_id $community_id] \ -package_key "[imsld::package_key]"] @@ -95,6 +99,7 @@ template::list::create \ -name imsld_runs \ -multirow imsld_runs \ + -pass_properties { return_url } \ -key run_id \ -elements { imsld_title { @@ -115,13 +120,25 @@ orderby_desc {creation_date desc} } manage { - label "" - display_template {@imsld_runs.manage;noquote@} + label {} + display_template { + [_ imsld.View_members] | [_ imsld.Monitor] + + + + [_ imsld.Manage_Members] + + } } delete { label {} sub_class narrow - display_template {@imsld_runs.delete_template;noquote@} + display_template { + [_ imsld.Deleted] [_ imsld.Make_it_live] + + + [_ imsld.Delte] + } link_html { title "[_ imsld.Delete_Run]" } } } \ @@ -134,32 +151,21 @@ set cr_root_folder_id [imsld::cr::get_root_folder -community_id $community_id] db_multirow -extend { manage delete_template image_path image_alt image_title } imsld_runs get_runs { *SQL* } { - - set delete_template "\"[_" - switch $status { - deleted { - set delete_template "[_ imsld.Deleted] [_ imsld.Make_it_live]" - } active { - set delete_template "\"[_" set image_alt "[_ imsld.active]" set image_title "[_ imsld.active]" set image_path "[lindex [site_node::get_url_from_object_id -object_id $imsld_package_id] 0]/resources/active.png" - set manage "[_ imsld.View_members] | [_ imsld.Monitor]" } waiting { set image_alt "[_ imsld.waiting]" set image_title "[_ imsld.waiting]" set image_path "[lindex [site_node::get_url_from_object_id -object_id $imsld_package_id] 0]/resources/waiting.png" - set create_run " [_ imsld.create_new_run] " - set manage "[_ imsld.Manage_Members]" } stopped { set image_alt "[_ imsld.stopped]" set image_title "[_ imsld.stopped]" set image_path "[lindex [site_node::get_url_from_object_id -object_id $imsld_package_id] 0]/resources/completed.png" - set manage "[_ imsld.View_members] | [_ imsld.Monitor]" } } } Index: openacs-4/packages/imsld/www/admin/index.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/index.xql,v diff -u -r1.2 -r1.2.4.1 --- openacs-4/packages/imsld/www/admin/index.xql 16 May 2006 09:24:36 -0000 1.2 +++ openacs-4/packages/imsld/www/admin/index.xql 14 Jun 2007 14:31:29 -0000 1.2.4.1 @@ -56,5 +56,15 @@ + + + + update imsld_runs + set status = 'waiting' + where run_id = :set_run_id_live + + + + Index: openacs-4/packages/imsld/www/admin/monitor/activity-frame.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/monitor/activity-frame.adp,v diff -u -r1.2.4.2 -r1.2.4.3 --- openacs-4/packages/imsld/www/admin/monitor/activity-frame.adp 4 Jun 2007 14:00:04 -0000 1.2.4.2 +++ openacs-4/packages/imsld/www/admin/monitor/activity-frame.adp 14 Jun 2007 14:31:30 -0000 1.2.4.3 @@ -1,27 +1,7 @@ - - @page_title;noquote@ - @context;noquote@ - - - - -#imsld.Hide# - - - -@list_header@ -

- -
- + +@page_title;noquote@ +@context;noquote@ + + + + +#imsld.Hide# + + - +@list_header@ +

+ +
+ + Index: openacs-4/packages/imsld/www/admin/monitor/environment-frame.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/monitor/environment-frame.adp,v diff -u -r1.1.4.1 -r1.1.4.2 --- openacs-4/packages/imsld/www/admin/monitor/environment-frame.adp 30 May 2007 08:06:18 -0000 1.1.4.1 +++ openacs-4/packages/imsld/www/admin/monitor/environment-frame.adp 14 Jun 2007 14:31:30 -0000 1.1.4.2 @@ -7,7 +7,17 @@ Index: openacs-4/packages/imsld/www/admin/monitor/monitor-tree.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/monitor/monitor-tree.adp,v diff -u -r1.2.4.2 -r1.2.4.3 --- openacs-4/packages/imsld/www/admin/monitor/monitor-tree.adp 4 Jun 2007 14:00:04 -0000 1.2.4.2 +++ openacs-4/packages/imsld/www/admin/monitor/monitor-tree.adp 14 Jun 2007 14:31:30 -0000 1.2.4.3 @@ -1,30 +1,17 @@ - - - + + + + - - - - - #imsld.Exit#
@properties_tree;noquote@ @html_tree;noquote@ @aux_html_tree;noquote@ - - + + Index: openacs-4/packages/imsld/www/admin/monitor/run-info.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/admin/monitor/run-info.adp,v diff -u -r1.1 -r1.1.4.1 --- openacs-4/packages/imsld/www/admin/monitor/run-info.adp 21 Dec 2006 15:20:47 -0000 1.1 +++ openacs-4/packages/imsld/www/admin/monitor/run-info.adp 14 Jun 2007 14:31:30 -0000 1.1.4.1 @@ -4,6 +4,7 @@ +