Diff for /loncom/interface/lonhelp.pm between versions 1.44 and 1.47

version 1.44, 2014/04/23 17:57:57 version 1.47, 2022/05/27 05:09:21
Line 71  sub servetext { Line 71  sub servetext {
                                            search  => 'Search LON-CAPA help',                                             search  => 'Search LON-CAPA help',
                                            query   => 'Search',                                             query   => 'Search',
                                         );                                          );
       my $goback;
       if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) ||
           (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self'))) {
           $goback = '<a href="javascript:history.go(-1);" class="LC_menubuttons_link" title="Go Back">'.
                     '<img src="/res/adm/pages/tolastloc.png" alt="'.&mt('Go Back').'" class="LC_icon" border="0" />'.
                     '</a>&nbsp;';
       }
     $r->print(<<HEADER);      $r->print(<<HEADER);
     <h3 style="font: sans-serif"><img align="right" alt="help logo"      <h3 style="font: sans-serif"><img align="right" alt="help logo"
     src="/adm/help/gif/lonhelpheader.gif" />$lt{'header'}</h3><hr />      src="/adm/help/gif/lonhelpheader.gif" />$goback$lt{'header'}</h3><hr />
     <!-- BEGIN -->      <!-- BEGIN -->
 HEADER  HEADER
     if ($is_mobile) {      if ($is_mobile) {
Line 172  sub render { Line 179  sub render {
     # Fix the pretty quotes      # Fix the pretty quotes
     $tex =~ s/('')|(``)/&quot;/g; #" to get emacs syntax highlighter happy      $tex =~ s/('')|(``)/&quot;/g; #" to get emacs syntax highlighter happy
   
       $tex =~ s/`/'/g;
   
     # For some reason all captions come out as "Figure 0:", so      # For some reason all captions come out as "Figure 0:", so
     # just duck the issue...      # just duck the issue...
   
Line 276  sub handler { Line 285  sub handler {
  $filenames =~ s/:/,/g;   $filenames =~ s/:/,/g;
  my @files = split(/,/, $filenames);   my @files = split(/,/, $filenames);
          $firstfile = '/adm/help/'.$files[0].'.hlp';           $firstfile = '/adm/help/'.$files[0].'.hlp';
            my $count = 0;
   
  for my $filename (@files) {   for my $filename (@files) {
      if (-e $docroot.'/adm/help/tex/'.       if (-e $docroot.'/adm/help/tex/'.
Line 287  sub handler { Line 297  sub handler {
    . '/adm/help/tex/'.$filename.'.tex'))     . '/adm/help/tex/'.$filename.'.tex'))
          or return HTTP_NOT_FOUND;           or return HTTP_NOT_FOUND;
      $tex .= join('', <$file>);       $tex .= join('', <$file>);
                $count ++;
                if (scalar(@files) > $count) {
                    $tex .= '\hrulefill';
                }
  }   }
   
  $text = &render($tex, $docroot);   $text = &render($tex, $docroot);

Removed from v.1.44  
changed lines
  Added in v.1.47


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