--- loncom/interface/loncommon.pm 2004/12/20 19:57:14 1.243 +++ loncom/interface/loncommon.pm 2005/01/04 14:46:17 1.245 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.243 2004/12/20 19:57:14 raeburn Exp $ +# $Id: loncommon.pm,v 1.245 2005/01/04 14:46:17 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -696,7 +696,7 @@ function helpMenu(target) { if (target == 'open') { var newWindow = null; try { - newWindow = window.open("","helpmenu","HEIGHT=$height,WIDTH=$width,resize=yes,scrollbars=yes" ) + newWindow = window.open("","helpmenu","HEIGHT=$height,WIDTH=$width,resizable=yes,scrollbars=yes" ) } catch(error) { writeHelp(caller); @@ -2706,6 +2706,17 @@ ENDROLE if ($customtitle) { $titleinfo = $customtitle; } + # + # Extra info if you are the DC + my $dc_info = ''; + if ($ENV{'user.adv'} && exists($ENV{'user.role.dc./'. + $ENV{'course.'.$ENV{'request.course.id'}. + '.domain'}.'/'})) { + my $cid = $ENV{'request.course.id'}; + $dc_info.= $cid.' '.$ENV{'course.'.$cid.'.internal.coursecode'}; + $dc_info = '('.$dc_info.')'; + } + # return(< @@ -2715,7 +2726,7 @@ $upperleft -$titleinfo +$titleinfo $dc_info $ENV{'environment.firstname'}