--- loncom/interface/lonnavdisplay.pm 2014/05/22 12:25:32 1.22.4.5 +++ loncom/interface/lonnavdisplay.pm 2013/08/07 00:03:25 1.23 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA -# Navigate Maps Display Handler +# Navigate Maps Handler # -# $Id: lonnavdisplay.pm,v 1.22.4.5 2014/05/22 12:25:32 raeburn Exp $ +# $Id: lonnavdisplay.pm,v 1.23 2013/08/07 00:03:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -30,7 +30,7 @@ package Apache::lonnavdisplay; use strict; -use Apache::Constants qw(:common :http REDIRECT); +use Apache::Constants qw(:common :http); use Apache::lonmenu(); use Apache::loncommon(); use Apache::lonnavmaps(); @@ -38,7 +38,7 @@ use Apache::lonhtmlcommon(); use Apache::lonnet; use Apache::lonlocal; use Apache::londocs(); -#use Time::HiRes qw( gettimeofday tv_interval ); +use Time::HiRes qw( gettimeofday tv_interval ); sub handler { my $r = shift; @@ -59,14 +59,6 @@ sub real_handler { return OK; } - # Check for critical messages and redirect if present. - my ($redirect,$url) = &Apache::loncommon::critical_redirect(300); - if ($redirect) { - &Apache::loncommon::content_type($r,'text/html'); - $r->header_out(Location => $url); - return REDIRECT; - } - # Send header, don't cache this page if ($env{'browser.mathml'}) { &Apache::loncommon::content_type($r,'text/xml'); @@ -254,7 +246,7 @@ sub real_handler { @@ -305,13 +297,14 @@ sub startContentScreen { my ($suppcount,$errors); unless ($allowed) { my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; - my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; + my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; ($suppcount,$errors) = &Apache::lonnet::get_numsuppfiles($cnum,$cdom); } - if ($allowed || $suppcount) { + if ($allowed || $suppcount) { $r->print('
  • '.&mt('Supplemental Content').'
  • '); } $r->print('     '.&mt('Content Search').'     '."\n"); + $r->print('      '.&mt('Content Index').'      '."\n"); $r->print("\n".''."\n"); $r->print('
    '); }