[LON-CAPA-cvs] cvs: loncom /interface groupsort.pm
banghart
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 29 Jun 2007 22:41:27 -0000
banghart Fri Jun 29 18:41:27 2007 EDT
Modified files:
/loncom/interface groupsort.pm
Log:
Get title if lonindexer fails to.
Index: loncom/interface/groupsort.pm
diff -u loncom/interface/groupsort.pm:1.51 loncom/interface/groupsort.pm:1.52
--- loncom/interface/groupsort.pm:1.51 Fri Jun 15 15:18:45 2007
+++ loncom/interface/groupsort.pm Fri Jun 29 18:41:24 2007
@@ -2,7 +2,7 @@
# The LON-CAPA group sort handler
# Allows for sorting prior to import into RAT.
#
-# $Id: groupsort.pm,v 1.51 2007/06/15 19:18:45 albertel Exp $
+# $Id: groupsort.pm,v 1.52 2007/06/29 22:41:24 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -65,6 +65,9 @@
foreach (sort {$achash{$a} <=> $achash{$b}} (keys %ahash)) {
my $key = $_;
if ($ahash{$key} eq '1') {
+ if ($hash{'pre_'.$key.'_title'} eq 'Not_retrieved') {
+ $hash{'pre_'.$key.'_title'} = &Apache::lonnet::gettitle($hash{'pre_'.$key.'_link'},'title');
+ }
$hash{'store_'.$hash{'pre_'.$key.'_link'}} =
$hash{'pre_'.$key.'_title'};
$hash{'storectr_'.$hash{'pre_'.$key.'_link'}} =