--- loncom/interface/lonnavdisplay.pm 2010/08/14 21:42:59 1.13.4.3
+++ loncom/interface/lonnavdisplay.pm 2010/10/04 21:51:22 1.13.6.3
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavdisplay.pm,v 1.13.4.3 2010/08/14 21:42:59 raeburn Exp $
+# $Id: lonnavdisplay.pm,v 1.13.6.3 2010/10/04 21:51:22 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -139,7 +139,7 @@ MENU
$r->send_http_header;
# ------------------------------------------------------------ Get query string
- &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['register','sort','showOnlyHomework','postsymb']);
+ &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['sort','showOnlyHomework','postsymb','register']);
# ----------------------------------------------------- Force menu registration
my $body_only='';
@@ -156,26 +156,35 @@ MENU
# Header
my $course_type = &Apache::loncommon::course_type();
my ($title,$breadcrumb_text,$start_page,$args);
- if ($course_type eq 'Community') {
- $title = 'Community Contents';
- $breadcrumb_text = &mt('Community Contents');
- } else {
- $title = 'Course Contents';
- $breadcrumb_text = &mt('Course Contents');
- }
+ $title = 'Contents';
+ $breadcrumb_text = &mt('Contents');
if ($env{'form.register'}) {
$args = {'force_register' => $env{'form.register'}};
+ my $brcrum = [{href => '/adm/navmaps',
+ text => $breadcrumb_text,
+ no_mt => 1,},
+ ];
+ $args = {'bread_crumbs' => $brcrum,
+ 'only_body' => $body_only};
$start_page = &Apache::loncommon::start_page($title,$js,$args);
} else {
- my $brcrum = [{href => '/adm/navmaps',
- text => $breadcrumb_text,
- no_mt => 1},
+ my $nomenu = 0;
+ if ((&Apache::loncommon::needs_gci_custom()) ||
+ ($env{'user.domain'} eq 'gcitest' && $env{'request.course.id'})) {
+ $nomenu = 1;
+ }
+ my $brcrum = [{href => '/adm/navmaps',
+ text => $breadcrumb_text,
+ no_mt => 1,
+ _nomenu => $nomenu,},
];
- $args = {'bread_crumbs' => $brcrum};
+ $args = {'bread_crumbs' => $brcrum,
+ 'only_body' => $body_only};
$start_page = &Apache::loncommon::start_page($title,$js,$args);
}
$r->print($start_page.
'');
+
$r->rflush();
# Check that it's defined
@@ -276,7 +285,7 @@ MENU
} else {
my $link = 'navmaps?jumpToFirstHomework';
if ($env{'form.register'}) {
- $link .= '®ister='.$env{'form.register'};
+ $link .= '®ister='.$env{'form.register'};
}
&Apache::lonnavmaps::add_linkitem(\%toplinkitems,'firsthomework',
'location.href="'.$link.'"',
@@ -326,7 +335,7 @@ MENU
-
+
');