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

version 1.319, 2010/03/17 19:35:56 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, both with the Remote  This gets called in order to register a URL in the body of the document
 and in the body of the document  
   
 =item clear()  =item clear()
   
Line 314  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 345  sub innerregister { Line 333  sub innerregister {
 #  #
         my @crumbs = ({text  => Apache::loncommon::course_type()           my @crumbs = ({text  => Apache::loncommon::course_type() 
                                 . ' Contents',                                   . ' Contents', 
                        href  => "Javascript:gonav('/adm/navmaps')"});                         href  => "Javascript:gopost('/adm/navmaps','')"});
   
         if ($mapurl ne $env{'course.'.$env{'request.course.id'}.'.url'}) {           if ($mapurl ne $env{'course.'.$env{'request.course.id'}.'.url'}) { 
             push(@crumbs, {text  => '...',              push(@crumbs, {text  => '...',
Line 570  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 628  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]);
               }
         }          }
     }      }
   
Line 701  sub switch { Line 690  sub switch {
     my $idx=10*$row+$col;      my $idx=10*$row+$col;
     $category_members{$cat}.=':'.$idx;      $category_members{$cat}.=':'.$idx;
   
 # Inline Remote  # Inline Menu
     if ($nobreak==2) { return ''; }      if ($nobreak==2) { return ''; }
     my $text=$top.' '.$bot;      my $text=$top.' '.$bot;
     $text=~s/\s*\-\s*//gs;      $text=~s/\s*\-\s*//gs;

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


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