[LON-CAPA-cvs] cvs: rat / lonratedt.pm doc/loncapafiles loncapafiles.lpml

raeburn lon-capa-cvs@mail.lon-capa.org
Wed, 17 Nov 2004 20:14:24 -0000


raeburn		Wed Nov 17 15:14:24 2004 EDT

  Modified files:              
    /doc/loncapafiles	loncapafiles.lpml 
    /rat	lonratedt.pm 
  Log:
  Correct filename for ratcode.js.  Also changes to use lonratmenu.pm instead of static
  code.html when using Advanced RAT in remoteless mode (forgotten in earlier commit).
  
  
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.397 doc/loncapafiles/loncapafiles.lpml:1.398
--- doc/loncapafiles/loncapafiles.lpml:1.397	Wed Nov 17 13:39:20 2004
+++ doc/loncapafiles/loncapafiles.lpml	Wed Nov 17 15:14:23 2004
@@ -2,7 +2,7 @@
  "http://lpml.sourceforge.net/DTD/lpml.dtd">
 <!-- loncapafiles.lpml -->
 
-<!-- $Id: loncapafiles.lpml,v 1.397 2004/11/17 18:39:20 raeburn Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.398 2004/11/17 20:14:23 raeburn Exp $ -->
 
 <!--
 
@@ -4482,8 +4482,8 @@
 </description>
 </file>
 <file>
-<source>rat/client/code.js</source>
-<target dist='default'>home/httpd/html/res/adm/includes/code.js</target>
+<source>rat/client/ratcode.js</source>
+<target dist='default'>home/httpd/html/res/adm/includes/ratcode.js</target>
 <categoryname>interface file</categoryname>
 <description>
 javascript for horizontal menubar in RAT
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.62 rat/lonratedt.pm:1.63
--- rat/lonratedt.pm:1.62	Wed Nov 17 14:59:29 2004
+++ rat/lonratedt.pm	Wed Nov 17 15:14:23 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.62 2004/11/17 19:59:29 albertel Exp $
+# $Id: lonratedt.pm,v 1.63 2004/11/17 20:14:23 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -393,6 +393,10 @@
 # --------------------------------------------------------- Build up RAT screen
 sub ratedt {
   my ($r,$url)=@_;
+  my $frameset = '<frameset rows="1,70,*" border="0">';
+  if ($ENV{'environment.remote'} eq 'off') {
+      $frameset = '<frameset rows="1,250,*" border="0">';
+  }
   $r->print(<<ENDDOCUMENT);
 
 <html>
@@ -401,9 +405,9 @@
     var flag=0;
 </script>
 </head>
-<frameset rows="1,50,*" border=0>
+$frameset
 <frame name=server src="$url/loadonly/ratserver" noresize noscroll>
-<frame name=code src="/adm/rat/code.html">
+<frame name=code src="$url/loadonly/adveditmenu">
 <frame name=mapout src="/adm/rat/map.html">
 </frameset>
 </html>