[LON-CAPA-cvs] cvs: loncom /interface lonindexer.pm

banghart lon-capa-cvs-allow@mail.lon-capa.org
Fri, 29 Jun 2007 22:42:17 -0000


banghart		Fri Jun 29 18:42:17 2007 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  	Store fact that title has not been retrieved.
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.166 loncom/interface/lonindexer.pm:1.167
--- loncom/interface/lonindexer.pm:1.166	Fri Jun 29 15:21:15 2007
+++ loncom/interface/lonindexer.pm	Fri Jun 29 18:42:17 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.166 2007/06/29 19:21:15 banghart Exp $
+# $Id: lonindexer.pm,v 1.167 2007/06/29 22:42:17 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -921,7 +921,7 @@
         my $title;
 	my $filelink = $pathprefix.$filecom[0];
 	if ($hash{'display_attrs_0'} == 1) {
-	    my $title = &Apache::lonnet::gettitle($filelink,'title');
+	    $title = &Apache::lonnet::gettitle($filelink,'title');
 	}
 	my @file_ext = split (/\./,$listname);
 	my $curfext = $file_ext[-1];
@@ -957,7 +957,7 @@
 	    $hash{"pre_${fnum}_link"}=$filelink;
 	    $hash{"pre_${fnum}_title"}=$title;
 	    if (!$hash{"pre_${fnum}_title"}) {
-	        $hash{"pre_${fnum}_title"} = 'Untitled';
+	        $hash{"pre_${fnum}_title"} = 'Not_retrieved';
 	    }
   	    $fnum++;
 	}