[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 28 Aug 2003 12:54:28 -0000


sakharuk		Thu Aug 28 08:54:28 2003 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Tha same changes (see last commitment) were done to avoide problems with printing in the case of 'NO_UNIT' and 'MISORDERED_RANK'.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.113 loncom/homework/inputtags.pm:1.114
--- loncom/homework/inputtags.pm:1.113	Thu Aug 28 08:46:31 2003
+++ loncom/homework/inputtags.pm	Thu Aug 28 08:54:27 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.113 2003/08/28 12:46:31 sakharuk Exp $
+# $Id: inputtags.pm,v 1.114 2003/08/28 12:54:27 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -402,8 +402,10 @@
       $bgcolor=$possiblecolors{'not_charged_try'};
       $button=1;
   } elsif ($award eq 'MISORDERED_RANK') {
-      $message = 'You have provided an invalid ranking, please refer to '.
-	  &Apache::loncommon::help_open_topic('Ranking_Problems','help on ranking problems').'.';
+      $message = 'You have provided an invalid ranking';
+      if ($target ne 'tex') {
+	  $message.=', please refer to '.&Apache::loncommon::help_open_topic('Ranking_Problems','help on ranking problems').'.';
+      }
       $bgcolor=$possiblecolors{'not_charged_try'};
       $button=1;
   } elsif ($award eq 'INVALID_FILETYPE') {
@@ -424,8 +426,8 @@
       $bgcolor=$possiblecolors{'not_charged_try'};
       $button=1;
   } elsif ($award eq 'NO_UNIT') {
-      $message = "Units required".
-	  &Apache::loncommon::help_open_topic('Physical_Units');
+      $message = "Units required";
+      if ($target ne 'tex') {$message.=&Apache::loncommon::help_open_topic('Physical_Units')};
       $bgcolor=$possiblecolors{'not_charged_try'};
       $button=1;
   } elsif ($award eq 'BAD_FORMULA') {