--- loncom/xml/lonxml.pm 2003/03/19 21:57:59 1.221.2.3 +++ loncom/xml/lonxml.pm 2003/01/30 22:19:09 1.226 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.221.2.3 2003/03/19 21:57:59 albertel Exp $ +# $Id: lonxml.pm,v 1.226 2003/01/30 22:19:09 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -192,7 +192,8 @@ sub xmlend { my $idx; for ($idx=1;$idx<=$contrib{'version'};$idx++) { my $hidden=($contrib{'hidden'}=~/\.$idx\./); - unless (($hidden) && (!$seeid)) { + my $deleted=($contrib{'deleted'}=~/\.$idx\./); + unless ((($hidden) && (!$seeid)) || ($deleted)) { my $message=$contrib{$idx.':message'}; $message=~s/\n/\
/g; $message=&Apache::lontexconvert::msgtexconverted($message); @@ -226,8 +227,10 @@ sub xmlend { } else { $sender.=' Hide'; - } - } + } + $sender.=' Delete'; + } } else { if ($screenname) { $sender=''.$screenname.''; @@ -268,7 +271,7 @@ sub tokeninputfield { my $defhost=$Apache::lonnet::perlvar{'lonHostID'}; $defhost=~tr/a-z/A-Z/; return (< +\n"; @@ -401,12 +404,11 @@ sub registerurl { (!&Apache::lonnet::is_on_map($ENV{'REQUEST_URI'}))) && (!$forcereg)) { return $result. - ''; + ''; } if ($Apache::lonxml::registered && !$forcereg) { return ''; } $Apache::lonxml::registered=1; - my $nothing=''; - if ($ENV{'browser.type'} eq 'explorer') { $nothing='javascript:void(0);'; } + my $reopen=&Apache::lonmenu::reopenmenu(); my $newmail=''; if (&Apache::lonmsg::newmail()) { $newmail='menu.setstatus("you have","messages");'; @@ -496,7 +498,7 @@ ENDPARM // BEGIN LON-CAPA Internal function LONCAPAreg() { - menu=window.open("$nothing","LONCAPAmenu","",false); + menu=$reopen; menu.clearTimeout(menu.menucltim); $timesync $newmail @@ -507,7 +509,7 @@ ENDPARM menu.currentStale=0; menu.clearbut(3,1); menu.switchbutton - (6,3,'catalog.gif','catalog','info','catalog_info()'); + (6,3,'catalog.gif','catalog','info','catalog_info()','Show catalog information'); menu.switchbutton (8,1,'eval.gif','evaluate','this','gopost("/adm/evaluate",currentURL)','Provide my evaluation of this resource'); menu.switchbutton @@ -529,7 +531,7 @@ ENDPARM } function LONCAPAstale() { - menu=window.open("$nothing","LONCAPAmenu","",false); + menu=$reopen menu.currentStale=1; if (menu.reloadURL!='' && menu.reloadURL!= null) { menu.switchbutton @@ -556,7 +558,7 @@ ENDREGTHIS // BEGIN LON-CAPA Internal function LONCAPAreg() { - menu=window.open("$nothing","LONCAPAmenu","",false); + menu=$reopen $timesync menu.currentStale=1; menu.clearbut(2,1); @@ -693,8 +695,7 @@ sub inner_xmlparse { if ($metamode<1) { my $text=$token->[1]; if ($token->[0] eq 'C' && $target eq 'tex') { - $text = ''; -# $text = '%'.$text."\n"; + $text = '%'.$text."\n"; } $result.=$text; } @@ -1264,7 +1265,7 @@ sub afterburn { $matchthis=~s/\_+/\\s\+/g; $result=~s/($matchthis)/\$1\<\/a\>/s; $result.=(<<"ENDSCRIPT"); - ENDSCRIPT