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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 17 Nov 2004 19:59:29 -0000


albertel		Wed Nov 17 14:59:29 2004 EDT

  Modified files:              
    /rat	lonratedt.pm 
  Log:
  - hide conditions when displaying the contents of a map
  
  
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.61 rat/lonratedt.pm:1.62
--- rat/lonratedt.pm:1.61	Sat Nov 13 16:17:55 2004
+++ rat/lonratedt.pm	Wed Nov 17 14:59:29 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.61 2004/11/13 21:17:55 albertel Exp $
+# $Id: lonratedt.pm,v 1.62 2004/11/17 19:59:29 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1148,7 +1148,8 @@
     foreach (&attemptread(&Apache::lonnet::filelocation('',$url))) {
 	if (defined($_)) {
             $idx++;
-	    my ($title,$url)=split(/\:/,$_);
+	    my ($title,$url,$cond)=split(/\:/,$_);
+	    if ($cond eq 'cond') { next; }
             $title=~s/\&colon\;/\:/g;
             $url=~s/\&colon\;/\:/g;
             unless ($title) { $title=(split(/\//,$url))[-1] };
@@ -1158,7 +1159,7 @@
             }
             $r->print(&Apache::lonratsrv::qtescape($title));
             if ($url) { $r->print('</a>'); }
-	    $r->print('<br>');
+	    $r->print("<br />\n");
         }
     }
     $r->print('</body></html>');