--- loncom/interface/lonmenu.pm 2013/12/13 14:30:49 1.369.2.48 +++ loncom/interface/lonmenu.pm 2014/01/06 17:32:58 1.369.2.50 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.369.2.48 2013/12/13 14:30:49 raeburn Exp $ +# $Id: lonmenu.pm,v 1.369.2.50 2014/01/06 17:32:58 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -562,8 +562,11 @@ sub create_submenu { if ($count == $numsub) { $borderbot = 'border-bottom:1px solid black;'; } + unless (($href eq '') || ($href =~ /^\#/)) { + $target = ' target="_top"'; + } $menu .= '
  • '; + $borderbot.'">'; if ($translate) { $menu .= &mt($item->[1]); } else { @@ -1876,7 +1879,7 @@ sub rawconfig { sub check_for_rcrs { my $showreqcrs = 0; - my @reqtypes = ('official','unofficial','community'); + my @reqtypes = ('official','unofficial','community','textbook'); foreach my $type (@reqtypes) { if (&Apache::lonnet::usertools_access($env{'user.name'}, $env{'user.domain'},