--- loncom/interface/lonmenu.pm 2009/12/24 18:28:58 1.309.2.5
+++ loncom/interface/lonmenu.pm 2010/01/06 22:40:34 1.309.2.10
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.309.2.5 2009/12/24 18:28:58 raeburn Exp $
+# $Id: lonmenu.pm,v 1.309.2.10 2010/01/06 22:40:34 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1380,29 +1380,42 @@ sub inlinemenu {
undef(@inlineremote);
undef(%category_members);
my $output;
- if ($context eq 'gcicustom') {
- my $createtext = &mt('Create Concept Test');
- if ($switcher) {
- $createtext = &mt('Create New Test');
- }
+ if (($context eq 'gcicustom') || ($context eq 'gcistudent')) {
$output='
'.
''.
' | '.
+ ''.
+ ' | ';
+ } else {
+ my $navtext = &mt('Table of Contents');
+ if ($env{'request.role.domain'} eq 'gcitest') {
+ $navtext = &mt('Display Test Contents');
+ }
+ $output .= '
 |
';
+ }
}
$output.='';
} else {
@@ -1736,7 +1749,7 @@ sub utilityfunctions {
my $gcimenujs;
if ($custommenu) {
- my %concepttests = &Apache::loncommon::existing_gcitest_courses();
+ my %concepttests = &Apache::loncommon::existing_gcitest_courses('cc');
my $managetesturl = '/adm/menu';
my $createtesturl = '/adm/requestcourse';
if (($env{'request.course.id'}) &&
@@ -2013,7 +2026,9 @@ sub hidden_button_check {
return;
}
if ($env{'request.role.adv'}) {
- return;
+ unless (&Apache::loncommon::needs_gci_custom()) {
+ return;
+ }
}
my $buttonshide = &Apache::lonnet::EXT('resource.0.buttonshide');
return $buttonshide;