[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm /publisher packages.tab

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 17 Mar 2005 21:21:11 -0000


albertel		Thu Mar 17 16:21:11 2005 EDT

  Modified files:              
    /loncom/publisher	packages.tab 
    /loncom/homework	bridgetask.pm 
  Log:
  - can now publish a bridge task
  
  
Index: loncom/publisher/packages.tab
diff -u loncom/publisher/packages.tab:1.40 loncom/publisher/packages.tab:1.41
--- loncom/publisher/packages.tab:1.40	Thu Feb 17 03:59:16 2005
+++ loncom/publisher/packages.tab	Thu Mar 17 16:21:11 2005
@@ -120,3 +120,39 @@
 default&hiddenresource&display:Resource Hidden from Students
 default&hiddenresource&type:string_yesno
 #default&hiddenresource&hidden:parm
+
+#bridge tasks
+# Task_0 and Task are really the same thing right now...
+Task&opendate&display:Problem Opening Date
+Task&opendate&type:date_start
+Task&duedate&display:Problem Due Date
+Task&duedate&type:date_end
+Task&answerdate&display:Problem Answer Date
+Task&answerdate&type:date_start
+Task&weight&display:Weight
+Task&weight&type:float_pos
+Task&weight&default:1
+Task&maxtries&display:Maximum Number of Tries
+Task&maxtries&type:int_pos
+Task&maxtries&default:99
+Task&acc&display:Client IP/Name Access Control
+Task&acc&type:string_ip
+Task&display&display:Task Description
+Task&display&type:string
+Task_0&hiddenresource&display:Resource hidden from students
+Task_0&hiddenresource&type:string_yesno
+Task_0&encrypturl&type:string_yesno
+Task_0&encrypturl&display:Do not show plain URL
+Task_0&mapalias&type:string
+Task_0&mapalias&display:Resource alias name for conditions
+Task_0&interval&display:Time-Limit
+Task_0&interval&type:date_interval
+Task_0&discussend&display:Discussion End Time
+Task_0&discussend&type:date_end
+Task_0&discusshide&display:Hide Closed Discussion
+Task_0&discusshide&type:string_yesno
+Task_0&discusshide&default:no
+Task_0&available&display:Slots of availability
+Task_0&available&type:string
+
+
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.1 loncom/homework/bridgetask.pm:1.2
--- loncom/homework/bridgetask.pm:1.1	Wed Mar 16 14:09:44 2005
+++ loncom/homework/bridgetask.pm	Thu Mar 17 16:21:11 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.1 2005/03/16 19:09:44 albertel Exp $
+# $Id: bridgetask.pm,v 1.2 2005/03/17 21:21:11 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -125,7 +125,7 @@
 	    #&finalize_storage();
 	}
     } elsif ($target eq 'meta') {
-	#$result=&Apache::response::mandatory_part_meta;
+	$result.='<parameter part="0" package="Task"></parameter>'."\n";
 	#$result.=&Apache::response::meta_part_order();
 	#$result.=&Apache::response::meta_response_order();
     }
@@ -167,7 +167,7 @@
 	#to randomly pick one until all have been seen
 	#then start repicking
 	my $instance=$dimension{'instances'}->[0];
-	my $result=$dimension{'intro'}.
+	$result=$dimension{'intro'}.
 	    $dimension{$instance.'.text'}.
 	    '<table border="1"><tr><td>Criteria</td></tr><tr><td>';
 	foreach my $id (@{$dimension{$instance.'.criterias'}}) {