--- loncom/homework/lonhomework.pm 2009/03/20 20:36:41 1.298.2.1
+++ loncom/homework/lonhomework.pm 2009/02/16 14:22:48 1.301
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.298.2.1 2009/03/20 20:36:41 raeburn Exp $
+# $Id: lonhomework.pm,v 1.301 2009/02/16 14:22:48 jms Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -173,7 +173,7 @@ sub setup_vars {
sub createmenu {
my ($which,$request)=@_;
if ($which eq 'grade') {
- $request->print('');
@@ -855,11 +855,8 @@ sub editxmlmode {
my $result;
my $problem=&Apache::lonnet::getfile($file);
if ($problem eq -1) {
- &Apache::lonxml::error(
- ' '
- .&mt('Unable to find [_1]',
- ''.$file.'')
- .'');
+ &Apache::lonxml::error(" ".&mt('Unable to find').
+ " $file");
$problem='';
}
if (defined($env{'form.editxmltext'}) || defined($env{'form.Undo'})) {
@@ -874,6 +871,12 @@ sub editxmlmode {
&renderpage($request,$file);
} else {
my ($rows,$cols) = &Apache::edit::textarea_sizes(\$problem);
+ my $xml_help = '
'.
+ &Apache::loncommon::helpLatexCheatsheet("Problem_Editor_XML_Index",
+ "Problem Editing Help").
+ ' | '.
+ &Apache::loncommon::help_open_menu(undef,undef,5,'Authoring').
+ ' |
';
if ($cols > 80) { $cols = 80; }
if ($cols < 70) { $cols = 70; }
if ($rows < 20) { $rows = 20; }
@@ -901,6 +904,7 @@ sub editxmlmode {