--- loncom/interface/lonnavdisplay.pm 2008/04/11 13:17:09 1.4
+++ loncom/interface/lonnavdisplay.pm 2009/03/16 15:25:40 1.8
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavdisplay.pm,v 1.4 2008/04/11 13:17:09 bisitz Exp $
+# $Id: lonnavdisplay.pm,v 1.8 2009/03/16 15:25:40 schulted Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -133,6 +133,7 @@ MENU
if (!defined($navmap)) {
my $requrl = $r->uri;
$env{'user.error.msg'} = "$requrl:bre:0:0:Course not initialized";
+ $env{'user.reinit'} = 1;
return HTTP_NOT_ACCEPTABLE;
}
$r->send_http_header;
@@ -154,8 +155,8 @@ MENU
# Header
my $course_type = &Apache::loncommon::course_type();
- $r->print(&Apache::loncommon::start_page('Navigate '.$course_type.
- ' Contents',
+ $r->print(&Apache::loncommon::start_page(#'Navigate '.$course_type.
+ 'Course Contents',
$js,
{'only_body' => $body_only,
'force_register' =>
@@ -255,9 +256,9 @@ MENU
# If we found no problems, print a note to that effect.
if (!$foundDoableProblem) {
- $r->print(""
+ $r->print(""
.&mt("All homework assignments have been completed.")
- ."
");
+ ."");
}
} else {
&Apache::lonnavmaps::add_linkitem(\%toplinkitems,'firsthomework',
@@ -280,7 +281,7 @@ MENU
&Apache::lonnavmaps::add_linkitem(\%toplinkitems,'everything',
'location.href="navmaps?sort='.$env{'form.sort'}.'"',
"Show everything");
- $r->print("
".&mt("Uncompleted Problems")."
"); + $r->print("".&mt("Uncompleted Problems").""); $env{'form.filter'} = ''; $env{'form.condition'} = 1; $resource_no_folder_link = 1; @@ -292,11 +293,11 @@ MENU } my %selected=($env{'form.sort'} => 'selected=on'); - my $sort_html=("