--- loncom/xml/londefdef.pm 2024/02/28 18:15:50 1.456.2.6.2.4 +++ loncom/xml/londefdef.pm 2024/09/04 18:31:28 1.456.2.6.2.5 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.456.2.6.2.4 2024/02/28 18:15:50 raeburn Exp $ +# $Id: londefdef.pm,v 1.456.2.6.2.5 2024/09/04 18:31:28 raeburn Exp $ # # # Copyright Michigan State University Board of Trustees @@ -50,7 +50,7 @@ use Apache::lonlocal; use Apache::loncommon(); use Apache::Constants qw(:common); use File::Basename; -use LONCAPA(); +use LONCAPA; # use Data::Dumper; BEGIN { @@ -649,7 +649,8 @@ sub start_body { sub edit_controls { my ($nochgview) = @_; - my $result = &Apache::lonxml::seteditor_javascript().' + my ($is_course_doc,$is_supp,$supp_path,$supp_title); + my $result = '
'."\n"; unless ($nochgview) { @@ -667,7 +668,7 @@ sub edit_controls { if ($env{'browser.type'} ne 'explorer' || $env{'browser.version'} > 9) { my $uri = $env{'request.uri'}; if ($uri =~ /\.(xml|html|htm|xhtml|xhtm)$/) { - my %editors = &Apache::loncommon::permitted_editors(); + my %editors = &Apache::loncommon::permitted_editors($uri); if ($editors{'daxe'}) { my $daxeurl = '/daxepage'.$uri; $result .= '