--- loncom/interface/lonnavdisplay.pm 2010/10/04 21:27:20 1.13.6.1
+++ loncom/interface/lonnavdisplay.pm 2010/10/04 21:46:32 1.13.6.2
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavdisplay.pm,v 1.13.6.1 2010/10/04 21:27:20 raeburn Exp $
+# $Id: lonnavdisplay.pm,v 1.13.6.2 2010/10/04 21:46:32 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -155,7 +155,7 @@ MENU
# Header
my $course_type = &Apache::loncommon::course_type();
- my ($title,$breadcrumb_text);
+ my ($title,$breadcrumb_text,$start_page,$args);
if ($course_type eq 'Community') {
$title = 'Community Contents';
$breadcrumb_text = &mt('Community Contents');
@@ -176,7 +176,8 @@ MENU
'only_body' => $body_only};
$start_page = &Apache::loncommon::start_page($title,$js,$args);
}
- $r->print('');
+ $r->print($start_page.
+ '');
$r->rflush();
@@ -309,9 +310,12 @@ MENU
$env{'form.condition'} = 1;
$resource_no_folder_link = 1;
} else {
+ my $link = 'navmaps?sort='.$env{'form.sort'}.'&showOnlyHomework=1';
+ if ($env{'form.register'}) {
+ $link .= '®ister='.$env{'form.register'};
+ }
&Apache::lonnavmaps::add_linkitem(\%toplinkitems,'uncompleted',
- 'location.href="navmaps?sort='.$env{'form.sort'}.
- '&showOnlyHomework=1"',
+ 'location.href="'.$link.'"',
"Show only uncompleted problems");
}
@@ -321,8 +325,8 @@ MENU
'.&mt('Sort by:').'