[LON-CAPA-cvs] cvs: rat / lonpageflip.pm

www lon-capa-cvs@mail.lon-capa.org
Fri, 12 Apr 2002 14:24:58 -0000


www		Fri Apr 12 10:24:58 2002 EDT

  Modified files:              
    /rat	lonpageflip.pm 
  Log:
  Hopefully now also works the other way around
  
  
Index: rat/lonpageflip.pm
diff -u rat/lonpageflip.pm:1.23 rat/lonpageflip.pm:1.24
--- rat/lonpageflip.pm:1.23	Fri Apr 12 09:47:21 2002
+++ rat/lonpageflip.pm	Fri Apr 12 10:24:58 2002
@@ -2,7 +2,7 @@
 #
 # Page flip handler
 #
-# $Id: lonpageflip.pm,v 1.23 2002/04/12 13:47:21 www Exp $
+# $Id: lonpageflip.pm,v 1.24 2002/04/12 14:24:58 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -132,11 +132,16 @@
                       }
                   } split(/\,/,$posnext);
                   if ($hash{'is_map_'.$next}) {
+# This jumps to the end of a new map (going down one level)
                       if (
       $hash{'map_type_'.$hash{'map_pc_'.$hash{'src_'.$next}}} eq 'sequence') {
 			  $mapurl=$hash{'src_'.$next};
 			  $next=$hash{'map_finish_'.$hash{'src_'.$next}};
                      }
+                  } elsif 
+                    ((split(/\./,$startoutrid))[0]!=(split(/\./,$next))[0]) {
+# This comes back up from a map (going up one level);
+		      $mapurl=$hash{'map_id_'.(split(/\./,$next))[0]};
                   }
 	      }
               return ($next,$mapurl);