--- loncom/xml/lonxml.pm 2003/02/25 21:27:07 1.239 +++ loncom/xml/lonxml.pm 2003/03/25 22:51:48 1.241 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.239 2003/02/25 21:27:07 sakharuk Exp $ +# $Id: lonxml.pm,v 1.241 2003/03/25 22:51:48 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -795,7 +795,7 @@ sub default_homework_load { my ($safeeval)=@_; &Apache::lonxml::debug('Loading default_homework'); my $default=&Apache::lonnet::getfile('/home/httpd/html/res/adm/includes/default_homework.lcpm'); - if ($default == -1) { + if ($default eq -1) { &Apache::lonxml::error("Unable to find default_homework.lcpm"); } else { &Apache::run::run($default,$safeeval); @@ -1100,6 +1100,13 @@ sub inserteditinfo { my ($result,$filecontents)=@_; $filecontents = &HTML::Entities::encode($filecontents); # my $editheader='Edit below
'; + my $xml_help = '
'. + &Apache::loncommon::help_open_topic("Greek_Symbols",'Greek Symbols', + undef,undef,600) + .''. + &Apache::loncommon::help_open_topic("Other_Symbols",'Other Symbols', + undef,undef,600) + .'
'; my $buttons=(< @@ -1110,6 +1117,7 @@ BUTTONS
+$xml_help $buttons
@@ -1179,7 +1187,7 @@ sub handler { my %mystyle; my $result = ''; my $filecontents=&Apache::lonnet::getfile($file); - if ($filecontents == -1) { + if ($filecontents eq -1) { $result=(<