--- loncom/interface/lonmenu.pm 2009/11/18 04:59:56 1.302
+++ loncom/interface/lonmenu.pm 2009/11/20 04:12:43 1.306
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.302 2009/11/18 04:59:56 raeburn Exp $
+# $Id: lonmenu.pm,v 1.306 2009/11/20 04:12:43 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -832,6 +832,7 @@ ENDMENUITEMS
if ($addremote) {
#SD START (work in progress!)
+ Apache::lonhtmlcommon::clear_breadcrumb_tools();
# Arrows for navigation
Apache::lonhtmlcommon::add_breadcrumb_tool( 'A', $inlineremote[21] );
Apache::lonhtmlcommon::add_breadcrumb_tool( 'A', $inlineremote[23] );
@@ -905,11 +906,11 @@ ENDMENUITEMS
$timesync
$breadcrumb
-
-
-
+
+
+
$newmail
-
+
@@ -1267,7 +1268,7 @@ sub switch {
my $pic=
'
';
+ '" align="'.($nobreak==3?'right':'left').'" class="LC_icon" />';
if ($env{'browser.interface'} eq 'faketextual') {
# Main Menu
if ($nobreak==3) {
@@ -1605,6 +1606,31 @@ function gonav(url) {
NAVCONTROL
}
+sub dc_popup_js {
+ my %lt = &Apache::lonlocal::texthash(
+ more => '(More ...)',
+ less => '(Less ...)',
+ );
+ return <<"END";
+
+function showCourseID() {
+ document.getElementById('dccid').style.display='block';
+ document.getElementById('dccid').style.textAlign='left';
+ document.getElementById('dccid').style.textFace='normal';
+ document.getElementById('dccidtext').innerHTML ='$lt{'less'}';
+ return;
+}
+
+function hideCourseID() {
+ document.getElementById('dccid').style.display='none';
+ document.getElementById('dccidtext').innerHTML ='$lt{'more'}';
+ return;
+}
+
+END
+
+}
+
sub utilityfunctions {
my $caller = shift;
unless ($env{'environment.remote'} eq 'off' ||
@@ -1622,6 +1648,13 @@ sub utilityfunctions {
my $currentsymb=&Apache::lonenc::check_encrypt($env{'request.symb'});
my $nav_control=&nav_control_js();
+ my $dc_popup_cid;
+ if ($env{'user.adv'} && exists($env{'user.role.dc./'.
+ $env{'course.'.$env{'request.course.id'}.
+ '.domain'}.'/'})) {
+ $dc_popup_cid = &dc_popup_js();
+ }
+
my $start_page_annotate =
&Apache::loncommon::start_page('Annotator',undef,
{'only_body' => 1,
@@ -1649,6 +1682,7 @@ return (<