[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
www
www at source.lon-capa.org
Thu Mar 15 14:15:55 EDT 2012
www Thu Mar 15 18:15:55 2012 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
Remember symbs and titles for recommender
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1158 loncom/lonnet/perl/lonnet.pm:1.1159
--- loncom/lonnet/perl/lonnet.pm:1.1158 Wed Mar 14 20:53:50 2012
+++ loncom/lonnet/perl/lonnet.pm Thu Mar 15 18:15:55 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1158 2012/03/14 20:53:50 www Exp $
+# $Id: lonnet.pm,v 1.1159 2012/03/15 18:15:55 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3269,6 +3269,7 @@
}
} else {
my ($dom,$name) = ($entry=~m{___($match_domain)/($match_name)/(.*)___(\w+)$});
+ if (($dom eq 'uploaded') || ($dom eq 'adm')) { next; }
my %temphash=($entry => $accesshash{$entry});
if (&put('nohist_resevaldata',\%temphash,$dom,$name) eq 'ok') {
delete $accesshash{$entry};
@@ -9404,6 +9405,9 @@
}
$title=~s/\&colon\;/\:/gs;
if ($title) {
+# Remember both $symb and $title for dynamic metadata
+ $accesshash{$symb.'___crstitle'}=$title;
+# Cache this title and then return it
return &do_cache_new('title',$key,$title,600);
}
$urlsymb=$url;
More information about the LON-CAPA-cvs
mailing list