--- loncom/interface/lonmenu.pm 2008/12/30 18:39:03 1.239.4.3
+++ loncom/interface/lonmenu.pm 2008/09/11 21:05:19 1.243
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.239.4.3 2008/12/30 18:39:03 raeburn Exp $
+# $Id: lonmenu.pm,v 1.243 2008/09/11 21:05:19 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -515,17 +515,18 @@ c&8&2
s&8&3&prt.gif&prepare[_1]&printout[_1]&gopost('/adm/printout',currentURL)&Prepare a printable document
s&9&1&sbkm.gif&set[_1]&bookmark[_2]&set_bookmark()&Set a bookmark for this resource&&1
ENDMENUITEMS
- my $currentURL = &Apache::loncommon::get_symb();
- my ($symb_old,$symb_old_enc) = &Apache::loncommon::clean_symb($currentURL);
- my $annotation = &Apache::loncommon::get_annotation($symb_old,$symb_old_enc);
- $menuitems.="s&9&3&";
- if (length($annotation) > 0){
- $menuitems.="anot2.gif";
- } else {
- $menuitems.="anot.gif";
- }
- $menuitems.="&anno-[_1]&tations[_1]&annotate()&";
- $menuitems.="Make notes and annotations about this resource&&1\n";
+
+my $currentURL = &Apache::loncommon::get_symb();
+my ($symb_old,$symb_old_enc) = &Apache::loncommon::clean_symb($currentURL);
+my $annotation = &Apache::loncommon::get_annotation($symb_old,$symb_old_enc);
+$menuitems.="s&9&3&";
+if(length($annotation) > 0){
+ $menuitems.="anot2.gif";
+}else{
+ $menuitems.="anot.gif";
+}
+$menuitems.="&anno-[_1]&tations[_1]&annotate()&";
+$menuitems.="Make notes and annotations about this resource&&1\n";
unless ($env{'request.noversionuri'}=~/\/(bulletinboard|smppg|navmaps|syllabus|aboutme)(\?|$)/) {
if (!$env{'request.enc'}) {
@@ -1000,11 +1001,14 @@ sub inlinemenu {
&rawconfig(1);
my $output='
';
for (my $col=1; $col<=2; $col++) {
- $output.='';
+ $output.=' | ';
for (my $row=1; $row<=8; $row++) {
foreach my $cat (keys(%category_members)) {
if ($category_positions{$cat} ne "$col,$row") { next; }
- $output.=' ';
+ #$output.=' ';
+ $output.='';
}
}
$output.="";
@@ -1131,18 +1137,6 @@ sub rawconfig {
}
}
}
- } elsif ($pro eq 'tools') {
- my @tools = ('aboutme','blog','portfolio');
- if (grep(/^\Q$prt\E$/,@tools)) {
- if (!&Apache::lonnet::usertools_access($env{'user.name'},
- $env{'user.domain'},$prt)) {
- $output.=&clear($row,$col);
- next;
- }
- }
- $prt='any';
- $output.=&secondlevel(
- $uname,$udom,$rol,$crs,$pub,$con,$row,$col,$prt,$img,$top,$bot,$act,$desc,$cat);
}
}
unless (($env{'browser.interface'} eq 'textual') ||
|