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

www lon-capa-cvs@mail.lon-capa.org
Wed, 26 Jun 2002 15:44:35 -0000


www		Wed Jun 26 11:44:35 2002 EDT

  Modified files:              
    /rat	lonuserstate.pm 
  Log:
  Bug 567
  Sets title, src, ids, and is_map in course-hash
  for top-level map under resource-ID "0.0".
  
  
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.29 rat/lonuserstate.pm:1.30
--- rat/lonuserstate.pm:1.29	Mon Jun 24 10:09:49 2002
+++ rat/lonuserstate.pm	Wed Jun 26 11:44:35 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Construct and maintain state and binary representation of course for user
 #
-# $Id: lonuserstate.pm,v 1.29 2002/06/24 14:09:49 www Exp $
+# $Id: lonuserstate.pm,v 1.30 2002/06/26 15:44:35 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -467,6 +467,11 @@
     %parmhash=();
     $errtext='';
     $pc=0;
+    my $furi='/res/'.&Apache::lonnet::declutter($uri);
+    $hash{'src_0.0'}=$furi;
+    $hash{'title_0.0'}=&Apache::lonnet::metadata($uri,'title');
+    $hash{'ids_'.$furi}='0.0';
+    $hash{'is_map_0.0'}=1;
     loadmap($uri);
     if (defined($hash{'map_start_'.$uri})) {
         &traceroute('0',$hash{'map_start_'.$uri},'&');