Diff for /rat/lonpageflip.pm between versions 1.13 and 1.14

version 1.13, 2000/11/16 11:58:30 version 1.14, 2001/01/10 19:51:01
Line 11 Line 11
 # 10/02 Gerd Kortemeyer)  # 10/02 Gerd Kortemeyer)
 #  #
 # 10/03,10/05,10/06,10/07,10/09,10/10,10/11,10/16,10/17,  # 10/03,10/05,10/06,10/07,10/09,10/10,10/11,10/16,10/17,
 # 11/14,11/16 Gerd Kortemeyer  # 11/14,11/16,
   # 10/01/01 Gerd Kortemeyer
   
 package Apache::lonpageflip;  package Apache::lonpageflip;
   
Line 110  sub handler { Line 111  sub handler {
           if (tie(%hash,'GDBM_File',$ENV{'request.course.fn'}.'.db',            if (tie(%hash,'GDBM_File',$ENV{'request.course.fn'}.'.db',
                         &GDBM_READER,0640)) {                          &GDBM_READER,0640)) {
               my $rid=$hash{'map_pc_/res/'.$mapurl}.'.'.$mapnum;                my $rid=$hash{'map_pc_/res/'.$mapurl}.'.'.$mapnum;
   
               my $next='';                my $next='';
               my $mincond=1;                my $mincond=1;
               my $posnext='';                my $posnext='';
               if ($direction eq 'forward') {                if ($direction eq 'forward') {
 # --------------------------------------------------------------------- Forward  # --------------------------------------------------------------------- Forward
                     if ($hash{'type_'.$rid} eq 'finish') {
                $rid=$hash{'ids_/res/'.$mapurl};
                     }
                   map {                    map {
                       my $thiscond=                        my $thiscond=
       &Apache::lonnet::directcondval($hash{'condid_'.$hash{'undercond_'.$_}});        &Apache::lonnet::directcondval($hash{'condid_'.$hash{'undercond_'.$_}});
Line 134  sub handler { Line 139  sub handler {
                                 $hash{'condid_'.$hash{'undercond_'.$linkid}});                                  $hash{'condid_'.$hash{'undercond_'.$linkid}});
                       }                        }
                   } split(/\,/,$posnext);                    } split(/\,/,$posnext);
                     if ($hash{'is_map_'.$next}) {
                         if (
         $hash{'map_type_'.$hash{'map_pc_'.$hash{'src_'.$next}}} eq 'sequence') {
     $mapurl=$hash{'src_'.$next};
     $next=$hash{'map_start_'.$hash{'src_'.$next}};
                        }
                     }
               } elsif ($direction eq 'back') {                } elsif ($direction eq 'back') {
 # ------------------------------------------------------------------- Backwards  # ------------------------------------------------------------------- Backwards
                     if ($hash{'type_'.$rid} eq 'start') {
                $rid=$hash{'ids_/res/'.$mapurl};
                     }
                   map {                    map {
                       my $thiscond=                        my $thiscond=
       &Apache::lonnet::directcondval($hash{'condid_'.$hash{'undercond_'.$_}});        &Apache::lonnet::directcondval($hash{'condid_'.$hash{'undercond_'.$_}});
Line 155  sub handler { Line 170  sub handler {
                                 $hash{'condid_'.$hash{'undercond_'.$linkid}});                                  $hash{'condid_'.$hash{'undercond_'.$linkid}});
                       }                        }
                   } split(/\,/,$posnext);                    } split(/\,/,$posnext);
                     if ($hash{'is_map_'.$next}) {
                         if (
         $hash{'map_type_'.$hash{'map_pc_'.$hash{'src_'.$next}}} eq 'sequence') {
     $mapurl=$hash{'src_'.$next};
     $next=$hash{'map_finish_'.$hash{'src_'.$next}};
                        }
                     }
        } elsif ($direction eq 'up') {         } elsif ($direction eq 'up') {
 # -------------------------------------------------------------------------- Up  # -------------------------------------------------------------------------- Up
               } elsif ($direction eq 'down') {                } elsif ($direction eq 'down') {

Removed from v.1.13  
changed lines
  Added in v.1.14


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