Diff for /loncom/interface/lonmenu.pm between versions 1.320 and 1.322

version 1.320, 2010/03/22 15:10:10 version 1.322, 2010/03/25 17:38:43
Line 109  Same as primary_menu() but operates on @ Line 109  Same as primary_menu() but operates on @
   
 =item show_return_link()  =item show_return_link()
   
 =item registerurl()  
   
 This gets called in the header section  
   
 =item innerregister()  =item innerregister()
   
 This gets called in order to register a URL in the body of the document  This gets called in order to register a URL in the body of the document
Line 313  sub show_return_link { Line 309  sub show_return_link {
      ));       ));
 }  }
   
   
 sub registerurl {  
     if ($env{'request.noversionuri'} =~ m{^/res/adm/pages/}) { return ''; }  
     return Apache::lonxml::display_title();  
 }  
   
 sub innerregister {  sub innerregister {
     my ($forcereg,$titletable,$bread_crumbs) = @_;      my ($forcereg,$bread_crumbs) = @_;
     my ($uname,$thisdisfn);  
     my $const_space = ($env{'request.state'} eq 'construct');      my $const_space = ($env{'request.state'} eq 'construct');
     my $is_const_dir = 0;      my $is_const_dir = 0;
   
Line 569  if(length($annotation) > 0){ Line 558  if(length($annotation) > 0){
 $menuitems.="&anno-[_1]&tations[_1]&annotate()&";  $menuitems.="&anno-[_1]&tations[_1]&annotate()&";
 $menuitems.="Make notes and annotations about this resource&&1\n";  $menuitems.="Make notes and annotations about this resource&&1\n";
   
             unless ($env{'request.noversionuri'}=~/\/(bulletinboard|smppg|navmaps|syllabus|aboutme)(\?|$)/) {              unless ($env{'request.noversionuri'}=~/\/(bulletinboard|smppg|navmaps|syllabus|aboutme|viewclasslist)(\?|$)/) {
  if ((!$env{'request.enc'}) && ($env{'request.noversionuri'} !~ m{^/adm/wrapper/ext/})) {   if ((!$env{'request.enc'}) && ($env{'request.noversionuri'} !~ m{^/adm/wrapper/ext/})) {
     $menuitems.=(<<ENDREALRES);      $menuitems.=(<<ENDREALRES);
 s&6&3&catalog.png&catalog[_2]&info[_1]&catalog_info()&Show Metadata  s&6&3&catalog.png&catalog[_2]&info[_1]&catalog_info()&Show Metadata
Line 627  ENDMENUITEMS Line 616  ENDMENUITEMS
                      'tools', @inlineremote[63]);                       'tools', @inlineremote[63]);
             }              }
                           
               unless ($env{'request.noversionuri'}=~ m{^/adm/(navmaps|viewclasslist)(\?|$)}) {
             Apache::lonhtmlcommon::add_breadcrumb_tool(                  Apache::lonhtmlcommon::add_breadcrumb_tool(
                 'advtools', @inlineremote[61,71,72,73,92]);                      'advtools', @inlineremote[61,71,72,73,92]);
               }
         }          }
     }      }
   

Removed from v.1.320  
changed lines
  Added in v.1.322


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>