[LON-CAPA-cvs] cvs: loncom /homework response.pm /homework/caparesponse caparesponse.pm /publisher packages.tab

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Tue, 23 Sep 2008 19:16:00 -0000


raeburn		Tue Sep 23 15:16:00 2008 EDT

  Modified files:              
    /loncom/publisher	packages.tab 
    /loncom/homework	response.pm 
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  DragMath for mathresponse and formularesponse.
  - As the default is to provide the DragMath Editor - a parameter: turnoffeditor (default "no") titled "Hide DragMath Editor" is more consistent with usage for existing parameters.
  
  
Index: loncom/publisher/packages.tab
diff -u loncom/publisher/packages.tab:1.57 loncom/publisher/packages.tab:1.58
--- loncom/publisher/packages.tab:1.57	Tue Sep  9 09:56:49 2008
+++ loncom/publisher/packages.tab	Tue Sep 23 15:15:56 2008
@@ -82,12 +82,12 @@
 essayresponse&maxcollaborators&display:Maximum Number of Collaborators
 essayresponse&uploadedfiletypes&type:string_fileext
 essayresponse&uploadedfiletypes&display:Allowed File Extensions for Uploaded Files
-formularesponse&turnoneditor&type:string_yesno
-formularesponse&turnoneditor&default:yes
-formularesponse&turnoneditor&display:Enable DragMath-Editor.
-mathresponse&turnoneditor&type:string_yesno
-mathresponse&turnoneditor&default:yes
-mathresponse&turnoneditor&display:Enable DragMath-Editor.
+formularesponse&turnoffeditor&type:string_yesno
+formularesponse&turnoffeditor&default:no
+formularesponse&turnoffeditor&display:Hide DragMath-Editor.
+mathresponse&turnoffeditor&type:string_yesno
+mathresponse&turnoffeditor&default:no
+mathresponse&turnoffeditor&display:Hide DragMath-Editor.
 
 #parameters for things by extension
 extension_sequence&encrypturl&type:string_yesno
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.204 loncom/homework/response.pm:1.205
--- loncom/homework/response.pm:1.204	Thu Sep 11 10:47:17 2008
+++ loncom/homework/response.pm	Tue Sep 23 15:15:57 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.204 2008/09/11 14:47:17 bisitz Exp $
+# $Id: response.pm,v 1.205 2008/09/23 19:15:57 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -575,7 +575,7 @@
         my $partid = $Apache::inputtags::part;
         my $id = $Apache::inputtags::response[-1];
         if (($Apache::inputtags::status['-1'] eq 'CAN_ANSWER')
-           && (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoneditor') ne 'no')) {
+           && (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') ne 'yes')) {
             $result.=&edit_mathresponse_button($id,"HWVAL_$id");
         }
     }
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.234 loncom/homework/caparesponse/caparesponse.pm:1.235
--- loncom/homework/caparesponse/caparesponse.pm:1.234	Fri Sep 19 20:25:39 2008
+++ loncom/homework/caparesponse/caparesponse.pm	Tue Sep 23 15:15:57 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.234 2008/09/20 00:25:39 raeburn Exp $
+# $Id: caparesponse.pm,v 1.235 2008/09/23 19:15:57 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -608,8 +608,8 @@
 	}
         if (($target eq 'web') && ($tag eq 'formularesponse')
             && ($Apache::lonhomework::type ne 'exam') && ($Apache::inputtags::status['-1'] eq 'CAN_ANSWER')
-	    && (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoneditor') ne 'no')){	   
-           $result.=&Apache::response::edit_mathresponse_button($id,"HWVAL_$id");
+	    && (&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') ne 'yes')) {
+            $result.=&Apache::response::edit_mathresponse_button($id,"HWVAL_$id");
         }
             
 	&Apache::response::setup_prior_tries_hash(\&format_prior_response_numerical);