Index: openacs-4/packages/assessment-portlet/assessment-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment-portlet/assessment-portlet.info,v diff -u -r1.3.2.1 -r1.3.2.2 --- openacs-4/packages/assessment-portlet/assessment-portlet.info 7 Jun 2005 23:29:52 -0000 1.3.2.1 +++ openacs-4/packages/assessment-portlet/assessment-portlet.info 25 Feb 2006 15:56:00 -0000 1.3.2.2 @@ -7,11 +7,11 @@ f t - + Jose Pablo Escobedo Del Cid 2004-06-12 - + Index: openacs-4/packages/assessment-portlet/catalog/assessment-portlet.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment-portlet/catalog/assessment-portlet.en_US.ISO-8859-1.xml,v diff -u -r1.1 -r1.1.2.1 --- openacs-4/packages/assessment-portlet/catalog/assessment-portlet.en_US.ISO-8859-1.xml 11 Feb 2005 23:22:48 -0000 1.1 +++ openacs-4/packages/assessment-portlet/catalog/assessment-portlet.en_US.ISO-8859-1.xml 25 Feb 2006 15:56:00 -0000 1.1.2.1 @@ -1,6 +1,7 @@ - + assessment admin There should be only one instance of assessment for admin purpose + Is this assessment anonymous? Index: openacs-4/packages/assessment-portlet/www/assessment-portlet-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment-portlet/www/assessment-portlet-postgresql.xql,v diff -u -r1.7 -r1.7.2.1 --- openacs-4/packages/assessment-portlet/www/assessment-portlet-postgresql.xql 22 Apr 2005 15:15:17 -0000 1.7 +++ openacs-4/packages/assessment-portlet/www/assessment-portlet-postgresql.xql 25 Feb 2006 15:55:59 -0000 1.7.2.1 @@ -10,7 +10,7 @@ to_char(a.end_time, 'YYYY-MM-DD HH24:MI:SS') as end_time, to_char(now(), 'YYYY-MM-DD HH24:MI:SS') as cur_time, cf.package_id, p.instance_name as community_name, - sc.node_id as comm_node_id, sa.node_id as as_node_id + sc.node_id as comm_node_id, sa.node_id as as_node_id, a.anonymous_p from as_assessments a, cr_revisions cr, cr_items ci, cr_folders cf, site_nodes sa, site_nodes sc, apm_packages p where a.assessment_id = cr.revision_id Index: openacs-4/packages/assessment-portlet/www/assessment-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment-portlet/www/assessment-portlet.tcl,v diff -u -r1.8 -r1.8.2.1 --- openacs-4/packages/assessment-portlet/www/assessment-portlet.tcl 26 Apr 2005 17:25:42 -0000 1.8 +++ openacs-4/packages/assessment-portlet/www/assessment-portlet.tcl 25 Feb 2006 15:55:59 -0000 1.8.2.1 @@ -32,7 +32,12 @@ label "[_ assessment.open_assessments]" \ display_template {@assessments.title@}] +lappend elements anonymous_p \ + [list \ + label "[_ assessment-portlet.lt_Is_this_assessment_an]" \ + display_template {YesNo}] + # create a list with all open assessments template::list::create \ -name assessments \ @@ -42,7 +47,7 @@ -main_class narrow # get the information of all open assessments -template::multirow create assessments assessment_id title description assessment_url community_url community_name +template::multirow create assessments assessment_id title description assessment_url community_url community_name anonymous_p set old_comm_node_id 0 db_foreach open_asssessments {} { if {([empty_string_p $start_time] || $start_time <= $cur_time) && ([empty_string_p $end_time] || $end_time >= $cur_time)} { @@ -59,7 +64,7 @@ append assessment_url [export_vars -base "assessment-password" {assessment_id}] } - template::multirow append assessments $assessment_id $title $description $assessment_url $community_url $community_name + template::multirow append assessments $assessment_id $title $description $assessment_url $community_url $community_name $anonymous_p } }