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

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


albertel		Thu Dec 29 13:09:33 2005 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - don't say answer available on handgraded problmes that are partially correct
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.355 loncom/interface/lonnavmaps.pm:1.356
--- loncom/interface/lonnavmaps.pm:1.355	Tue Dec 20 11:43:27 2005
+++ loncom/interface/lonnavmaps.pm	Thu Dec 29 13:09:32 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.355 2005/12/20 16:43:27 www Exp $
+# $Id: lonnavmaps.pm,v 1.356 2005/12/29 18:09:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -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) {