--- rat/lonwrapper.pm 2010/03/04 19:35:53 1.39 +++ rat/lonwrapper.pm 2016/01/26 14:30:40 1.50 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.39 2010/03/04 19:35:53 droeschl Exp $ +# $Id: lonwrapper.pm,v 1.50 2016/01/26 14:30:40 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -33,36 +33,107 @@ use strict; use Apache::Constants qw(:common); use Apache::lonenc(); use Apache::lonnet; +use Apache::lonlocal; +use Apache::loncommon(); +use Apache::lonhtmlcommon(); +use Apache::lonextresedit(); +use Apache::lonexttool(); +use LONCAPA qw(:DEFAULT :match);; # ================================================================ Main Handler sub wrapper { - my $url = shift; + my ($url,$brcrum,$absolute,$is_ext,$is_pdf,$exttool,$title) = @_; - my $startpage = Apache::loncommon::start_page('Menu',undef, - { 'force_register' =>1, 'bgcolor' => '#FFFFFF',}) ; - my $endpage = Apache::loncommon::end_page(); - - my $script = Apache::lonhtmlcommon::scripttag(<