[LON-CAPA-cvs] cvs: loncom /interface lonindexer.pm
banghart
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 28 Jun 2007 22:28:22 -0000
banghart Thu Jun 28 18:28:22 2007 EDT
Modified files:
/loncom/interface lonindexer.pm
Log:
Should allow sticky checks without breaking other stuff.
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.164 loncom/interface/lonindexer.pm:1.165
--- loncom/interface/lonindexer.pm:1.164 Thu Jun 28 17:42:49 2007
+++ loncom/interface/lonindexer.pm Thu Jun 28 18:28:22 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Directory Indexer
#
-# $Id: lonindexer.pm,v 1.164 2007/06/28 21:42:49 banghart Exp $
+# $Id: lonindexer.pm,v 1.165 2007/06/28 22:28:22 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -410,8 +410,8 @@
# sorting through the actions and changing the global database hash
foreach my $key (sort {$achash{$a}<=>$achash{$b}} (keys %ahash)) {
if ($ahash{$key} eq '1') {
- $hash{'store_'.$hash{'pre_'.$key.'_link'}}=1;
- # $hash{'pre_'.$key.'_title'};
+ $hash{'store_'.$hash{'pre_'.$key.'_link'}}=
+ $hash{'pre_'.$key.'_title'};
$hash{'storectr_'.$hash{'pre_'.$key.'_link'}}=
$hash{'storectr'}+0;
$hash{'storectr'}++;
@@ -951,6 +951,10 @@
$r->print(" />\n");
$r->print("</form></td><td nowrap='nowrap' valign='top'>");
$hash{"pre_${fnum}_link"}=$filelink;
+ $hash{"pre_${fnum}_title"}=&Apache::lonnet::gettitle($filelink,'title');
+ if (!$hash{"pre_${fnum}_title"}) {
+ $hash{"pre_${fnum}_title"} = 'Untitled';
+ }
$fnum++;
}
# Form to open or close sequences