[LON-CAPA-cvs] cvs: loncom(version_2_1_X) /interface lonnavmaps.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 29 Dec 2005 18:12:36 -0000


albertel		Thu Dec 29 13:12:36 2005 EDT

  Modified files:              (Branch: version_2_1_X)
    /loncom/interface	lonnavmaps.pm 
  Log:
  - backport 1.355 1.356
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.349.2.3 loncom/interface/lonnavmaps.pm:1.349.2.4
--- loncom/interface/lonnavmaps.pm:1.349.2.3	Thu Dec 22 16:09:15 2005
+++ loncom/interface/lonnavmaps.pm	Thu Dec 29 13:12:36 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.349.2.3 2005/12/22 21:09:15 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.349.2.4 2005/12/29 18:12:36 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -57,7 +57,7 @@
      $resObj->CLOSED       => '',
      $resObj->OPEN         => 'navmap.open.gif',
      $resObj->CORRECT      => 'navmap.correct.gif',
-     $resObj->PARTIALLY_CORRECT      => 'navmap.ellipsis.gif',
+     $resObj->PARTIALLY_CORRECT      => 'navmap.partial.gif',
      $resObj->INCORRECT    => 'navmap.wrong.gif',
      $resObj->ATTEMPTED    => 'navmap.ellipsis.gif',
      $resObj->ERROR        => ''
@@ -530,7 +530,9 @@
     if ($status == $res->PAST_DUE_NO_ANSWER) {
         return &mt("Was due")." " . timeToHumanString($res->duedate($part),'end');
     }
-    if ($status == $res->ANSWER_OPEN || $status == $res->PARTIALLY_CORRECT) {
+    if ($status == $res->ANSWER_OPEN 
+	|| ($status == $res->PARTIALLY_CORRECT
+	    && $res->handgrade($part) ne 'yes')) {
         return &mt("Answer available");
     }
     if ($status == $res->EXCUSED) {