Diff for /loncom/xml/lonxml.pm between versions 1.538 and 1.539

version 1.538, 2013/03/11 21:37:10 version 1.539, 2013/05/05 00:10:16
Line 1536  sub inserteditinfo { Line 1536  sub inserteditinfo {
 </script>  </script>
 FULLPAGE  FULLPAGE
       if ($filetype eq 'html') {        if ($filetype eq 'html') {
           if ($symb || $folderpath) {            my $context;
               $deps_button = &Apache::lonhtmlcommon::dependencies_button()."\n";            if ($env{'request.course.id'}) {
               $initialize .=                 my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
                   &Apache::lonhtmlcommon::dependencycheck_js($symb,$itemtitle,                my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};
                                                              undef,$folderpath,$uri)."\n";                if ($uri =~ m{^\Q/uploaded/$cdom/$cnum/portfolio/syllabus/\E}) {
                     $context = 'syllabus';
                     $deps_button = &Apache::lonhtmlcommon::dependencies_button()."\n";
                     $initialize .=
                         &Apache::lonhtmlcommon::dependencycheck_js(undef,&mt('Syllabus'),
                                                                    $uri,undef,
                                                                    "/public/$cdom/$cnum/syllabus").
                         "\n";
                 }
             }
             unless ($context eq 'syllabus') {
                 if ($symb || $folderpath) {
                     $deps_button = &Apache::lonhtmlcommon::dependencies_button()."\n";
                     $initialize .= 
                         &Apache::lonhtmlcommon::dependencycheck_js($symb,$itemtitle,
                                                                    undef,$folderpath,$uri)."\n";
                 }
           }            }
           $dragmath_button = '<span id="math_filecont">'.&Apache::lonhtmlcommon::dragmath_button('filecont',1).'</span>';            $dragmath_button = '<span id="math_filecont">'.&Apache::lonhtmlcommon::dragmath_button('filecont',1).'</span>';
           $initialize .= "\n".&Apache::lonhtmlcommon::dragmath_js('EditMathPopup');            $initialize .= "\n".&Apache::lonhtmlcommon::dragmath_js('EditMathPopup');
Line 1806  ENDNOTFOUND Line 1822  ENDNOTFOUND
                 if ($env{'request.course.id'}) {                  if ($env{'request.course.id'}) {
                     my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};                      my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
                     my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};                      my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};
                     if ($request->uri =~ m{^\Q/uploaded/$cdom/$cnum/\Esupplemental/}) {                      if ($request->uri =~ m{^\Q/uploaded/$cdom/$cnum/supplemental/\E}) {
                         &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},                          &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
                                                                 ['folderpath','title']);                                                                  ['folderpath','title']);
                       } elsif ($request->uri =~ m{^\Q/uploaded/$cdom/$cnum/portfolio/syllabus/\E(.+)$}) {
                           $displayfile = &mt('Syllabus file: [_1]',$1);
                           $itemtitle = &mt('Syllabus');
                     }                      }
                 }                  }
                 ($symb,$itemtitle,$displayfile) =                   unless ($itemtitle) {
                     &get_courseupload_hierarchy($request->uri,                      ($symb,$itemtitle,$displayfile) = 
                                                 $env{'form.folderpath'},$env{'form.title'});                          &get_courseupload_hierarchy($request->uri,
                                                       $env{'form.folderpath'},
                                                       $env{'form.title'});
                   }
             } else {              } else {
         $displayfile=~s/^\/[^\/]*//;          $displayfile=~s/^\/[^\/]*//;
             }              }

Removed from v.1.538  
changed lines
  Added in v.1.539


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