[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm /homework/templates CustomResponse.problem.meta HintMathResponse.problem.meta StringResponse.problem.meta

www lon-capa-cvs-allow@mail.lon-capa.org
Mon, 19 May 2008 21:07:42 -0000


www		Mon May 19 17:07:42 2008 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
    /loncom/homework/templates	CustomResponse.problem.meta 
                              	HintMathResponse.problem.meta 
                              	StringResponse.problem.meta 
  Log:
  More help links, better labels, better column distribution for templates.
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.292 loncom/homework/lonhomework.pm:1.293
--- loncom/homework/lonhomework.pm:1.292	Mon May 19 16:38:04 2008
+++ loncom/homework/lonhomework.pm	Mon May 19 17:07:33 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.292 2008/05/19 20:38:04 www Exp $
+# $Id: lonhomework.pm,v 1.293 2008/05/19 21:07:33 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1102,12 +1102,12 @@
 	next if ($file->[1] !~ /\S/);
         if ($file->[2] ne $currentcategory) {
            $currentcategory=$file->[2];
-           $count++;
            if ((!$seconddiv) && ($count >= $midpoint)) {
                $result .= '</div>'."\n".'<div class="LC_left_float">'."\n";
                $seconddiv = 1;
            }
            $result.='<h3>'.$currentcategory.'</h3>';
+           $count++;
         }
 	$result .=
 	    '<label><input type="radio" name="template" value="'.$file->[0].'" />'.
Index: loncom/homework/templates/CustomResponse.problem.meta
diff -u loncom/homework/templates/CustomResponse.problem.meta:1.2 loncom/homework/templates/CustomResponse.problem.meta:1.3
--- loncom/homework/templates/CustomResponse.problem.meta:1.2	Mon May 19 16:38:30 2008
+++ loncom/homework/templates/CustomResponse.problem.meta	Mon May 19 17:07:41 2008
@@ -1,3 +1,3 @@
 <title>Custom Response</title>
-<category>Free Form</category>
+<category>Free Form Problems</category>
 <help>Custom_Response_Problems</help>
Index: loncom/homework/templates/HintMathResponse.problem.meta
diff -u loncom/homework/templates/HintMathResponse.problem.meta:1.2 loncom/homework/templates/HintMathResponse.problem.meta:1.3
--- loncom/homework/templates/HintMathResponse.problem.meta:1.2	Mon May 19 16:38:30 2008
+++ loncom/homework/templates/HintMathResponse.problem.meta	Mon May 19 17:07:41 2008
@@ -1,2 +1,3 @@
 <title>Math Response using Computer Algebra System and Hints</title>
 <category>Algebraic Response Problems</category>
+<help>Math_Response_Problems</help>
Index: loncom/homework/templates/StringResponse.problem.meta
diff -u loncom/homework/templates/StringResponse.problem.meta:1.4 loncom/homework/templates/StringResponse.problem.meta:1.5
--- loncom/homework/templates/StringResponse.problem.meta:1.4	Mon May 19 16:38:30 2008
+++ loncom/homework/templates/StringResponse.problem.meta	Mon May 19 17:07:41 2008
@@ -1,3 +1,3 @@
 <title>String Response</title>
-<category>Free Form</category>
+<category>Free Form Problems</category>
 <help>String_Response_Problems</help>