--- loncom/publisher/lonpublisher.pm 2001/09/26 16:26:49 1.45 +++ loncom/publisher/lonpublisher.pm 2001/10/16 08:53:19 1.48 @@ -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,8/18,8/24,9/26 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; @@ -56,7 +56,7 @@ sub metaeval { $unikey.='_'.$token->[2]->{'part'}; } if (defined($token->[2]->{'id'})) { - $unikey.='_'.$token->[2]->{'id'}; + $unikey.='.'.$token->[2]->{'id'}; } if (defined($token->[2]->{'name'})) { $unikey.='_'.$token->[2]->{'name'}; @@ -470,7 +470,7 @@ sub publish { my $keywordout='

Keywords:
'; my $colcount=0; - { + if (length($content)<500000) { my $textonly=$content; $textonly=~s/\//g; $textonly=~s/\[^\<]+\<\/m\>//g; @@ -502,9 +502,11 @@ sub publish { } $colcount++; } sort keys %keywords; - $keywordout.='
'; - - } + } else { + $keywordout.='File too large, scan omitted'; + } + + $keywordout.=''; $scrout.=$keywordout;