version 1.49, 2003/12/25 15:20:00
|
version 1.50, 2003/12/26 15:13:48
|
Line 188 sub dynamicmeta {
|
Line 188 sub dynamicmeta {
|
if (defined($cnt{$cat})) { $cnt{$cat}++; } else { $cnt{$cat}=1; } |
if (defined($cnt{$cat})) { $cnt{$cat}++; } else { $cnt{$cat}=1; } |
unless ($listitems{$cat} eq 'app') { |
unless ($listitems{$cat} eq 'app') { |
if (defined($sum{$cat})) { |
if (defined($sum{$cat})) { |
$sum{$cat}+=$evaldata{$esckey}; |
$sum{$cat}+=&unescape($evaldata{$esckey}); |
$concat{$cat}.=','.$item; |
$concat{$cat}.=','.$item; |
} else { |
} else { |
$sum{$cat}=$evaldata{$esckey}; |
$sum{$cat}=&unescape($evaldata{$esckey}); |
$concat{$cat}=$item; |
$concat{$cat}=$item; |
} |
} |
} else { |
} else { |
if (defined($sum{$cat})) { |
if (defined($sum{$cat})) { |
if ($evaldata{$esckey}=~/\w/) { |
if ($evaldata{$esckey}=~/\w/) { |
$sum{$cat}.='<hr>'.$evaldata{$esckey}; |
$sum{$cat}.='<hr />'.&unescape($evaldata{$esckey}); |
} |
} |
} else { |
} else { |
$sum{$cat}=''.$evaldata{$esckey}; |
$sum{$cat}=''.&unescape($evaldata{$esckey}); |
} |
} |
} |
} |
} |
} |
Line 241 sub dynamicmeta {
|
Line 241 sub dynamicmeta {
|
# --------------- Read loncapa_apache.conf and loncapa.conf and get variables |
# --------------- Read loncapa_apache.conf and loncapa.conf and get variables |
my $perlvarref=LONCAPA::Configuration::read_conf('loncapa.conf'); |
my $perlvarref=LONCAPA::Configuration::read_conf('loncapa.conf'); |
my %perlvar=%{$perlvarref}; |
my %perlvar=%{$perlvarref}; |
undef $perlvarref; # remove since sensitive and not needed |
undef $perlvarref; |
delete $perlvar{'lonReceipt'}; # remove since sensitive and not needed |
delete $perlvar{'lonReceipt'}; # remove since sensitive and not needed |
|
|
# ------------------------------------- Only run if machine is a library server |
# ------------------------------------- Only run if machine is a library server |
Line 282 my $dbh;
|
Line 282 my $dbh;
|
"title TEXT, author TEXT, subject TEXT, url TEXT, keywords TEXT, ". |
"title TEXT, author TEXT, subject TEXT, url TEXT, keywords TEXT, ". |
"version TEXT, notes TEXT, abstract TEXT, mime TEXT, language TEXT, ". |
"version TEXT, notes TEXT, abstract TEXT, mime TEXT, language TEXT, ". |
"creationdate DATETIME, lastrevisiondate DATETIME, owner TEXT, ". |
"creationdate DATETIME, lastrevisiondate DATETIME, owner TEXT, ". |
"copyright TEXT, ". |
"copyright TEXT, dependencies TEXT, ". |
"count INTEGER UNSIGNED, ". |
"count INTEGER UNSIGNED, ". |
"course INTEGER UNSIGNED, course_list TEXT, ". |
"course INTEGER UNSIGNED, course_list TEXT, ". |
"goto INTEGER UNSIGNED, goto_list TEXT, ". |
"goto INTEGER UNSIGNED, goto_list TEXT, ". |
Line 334 my $insert_sth = $dbh->prepare
|
Line 334 my $insert_sth = $dbh->prepare
|
"?,". # revisiondate |
"?,". # revisiondate |
"?,". # owner |
"?,". # owner |
"?,". # copyright |
"?,". # copyright |
|
"?,". # dependencies |
"?,". # count |
"?,". # count |
"?,". # course |
"?,". # course |
"?,". # course_list |
"?,". # course_list |
Line 393 foreach my $user (@homeusers) {
|
Line 394 foreach my $user (@homeusers) {
|
sqltime($ref->{'lastrevisiondate'}), |
sqltime($ref->{'lastrevisiondate'}), |
$ref->{'owner'}, |
$ref->{'owner'}, |
$ref->{'copyright'}, |
$ref->{'copyright'}, |
|
$ref->{'dependencies'}, |
$dyn{'count'}, |
$dyn{'count'}, |
$dyn{'course'}, |
$dyn{'course'}, |
$dyn{'course_list'}, |
$dyn{'course_list'}, |