--- rat/lonwrapper.pm 2014/06/17 23:22:21 1.49 +++ rat/lonwrapper.pm 2016/08/05 21:34:54 1.49.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.49 2014/06/17 23:22:21 raeburn Exp $ +# $Id: lonwrapper.pm,v 1.49.2.1 2016/08/05 21:34:54 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -52,7 +52,15 @@ sub wrapper { 'show' => 'Show content in pop-up window', ); - my $noiframe = &Apache::loncommon::modal_link($url,$lt{'show'},500,400); + my $anchor; + if (($is_ext) && ($env{'form.symb'})) { + (undef,undef,my $res) = &Apache::lonnet::decode_symb($env{'form.symb'}); + if ($res =~ /(\#.+)$/) { + $anchor = $1; + } + } + + my $noiframe = &Apache::loncommon::modal_link($url.$anchor,$lt{'show'},500,400); my $args = {'bgcolor' => '#FFFFFF'}; if ($forcereg) { $args->{'force_register'} = $forcereg; @@ -85,7 +93,7 @@ sub wrapper { $output .= ''.&mt('Link to PDF (for mobile devices)').''; } else { $output .= '