[LON-CAPA-cvs] cvs: loncom /interface lonwhatsnew.pm /publisher packages.tab

raeburn raeburn at source.lon-capa.org
Sat Dec 12 21:00:49 EST 2020


raeburn		Sun Dec 13 02:00:49 2020 EDT

  Modified files:              
    /loncom/interface	lonwhatsnew.pm 
    /loncom/publisher	packages.tab 
  Log:
  - Make handgrade parameter (default=no) available for custom response items,
    and add customresponse with handgrade=yes in "What's New" handgrading list. 
  
  
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.128 loncom/interface/lonwhatsnew.pm:1.129
--- loncom/interface/lonwhatsnew.pm:1.128	Tue Sep  1 22:25:27 2020
+++ loncom/interface/lonwhatsnew.pm	Sun Dec 13 02:00:49 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # What's New in a course
 #
-# $Id: lonwhatsnew.pm,v 1.128 2020/09/01 22:25:27 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.129 2020/12/13 02:00:49 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1139,6 +1139,11 @@
                 if (grep(/^essay$/, at types)) {
                     $handgradeable=1;
                     last;
+                } elsif (grep(/^custom$/, at types)) {
+                    if ($resource->handgrade($part) eq 'yes') {
+                        $handgradeable=1;
+                        last;
+                    }
                 }
             }
         }
Index: loncom/publisher/packages.tab
diff -u loncom/publisher/packages.tab:1.79 loncom/publisher/packages.tab:1.80
--- loncom/publisher/packages.tab:1.79	Tue Nov 13 03:59:04 2018
+++ loncom/publisher/packages.tab	Sun Dec 13 02:00:49 2020
@@ -127,6 +127,9 @@
 matchresponse&lenient&type:string_lenient
 matchresponse&lenient&default:default
 matchresponse&lenient&display:Lenient Grading (Partial Credit)
+customresponse&handgrade&type:string_yesno
+customresponse&handgrade&default:no
+customresponse&handgrade&display:Hand Graded
 
 #parameters for things by extension
 extension_sequence&encrypturl&type:string_yesno




More information about the LON-CAPA-cvs mailing list