--- loncom/publisher/lonpublisher.pm 2001/08/17 21:25:36 1.41
+++ loncom/publisher/lonpublisher.pm 2001/10/16 19:33:26 1.51
@@ -11,7 +11,7 @@
# 04/16/2001 Scott Harrison
# 05/03,05/05,05/07 Gerd Kortemeyer
# 05/28/2001 Scott Harrison
-# 06/23,08/07,08/11,8/13,8/17 Gerd Kortemeyer
+# 06/23,08/07,08/11,8/13,8/17,8/18,8/24,9/26,10/16 Gerd Kortemeyer
package Apache::lonpublisher;
@@ -259,7 +259,7 @@ sub publish {
}
$allow{$newurl}=1;
}
- } ('src','href');
+ } ('src','href','background');
if ($tag eq 'applet') {
my $codebase='';
@@ -317,9 +317,18 @@ sub publish {
}
# ------------------------------------------------------------ Construct Allows
unless ($style eq 'rat') {
+ $scrout.='
Dependencies
';
my $allowstr="\n";
map {
$allowstr.=''."\n";
+ $scrout.='
';
+ unless ($_=~/\*/) {
+ $scrout.='';
+ }
+ $scrout.=''.$_.'';
+ unless ($_=~/\*/) {
+ $scrout.='';
+ }
} keys %allow;
$outstring=~s/(\<\/[^\>]+\>\s*)$/$allowstr$1/s;
}
@@ -352,6 +361,8 @@ sub publish {
%metadatakeys=();
my %oldparmstores=();
+
+ $scrout.='Metadata Information
';
# ------------------------------------------------ First, check out environment
unless (-e $source.'.meta') {
@@ -402,7 +413,11 @@ sub publish {
# -------------------------------------------------- Parse content for metadata
if ($style eq 'ssi') {
+ my $oldenv=$ENV{'request.uri'};
+
+ $ENV{'request.uri'}=$target;
$allmeta=Apache::lonxml::xmlparse('meta',$content);
+ $ENV{'request.uri'}=$oldenv;
&metaeval($allmeta);
}
@@ -455,7 +470,7 @@ sub publish {
my $keywordout='Keywords:
';
my $colcount=0;
- {
+ if (length($content<500000) {
my $textonly=$content;
$textonly=~s/\