--- loncom/interface/londocs.pm 2002/12/09 22:27:20 1.40 +++ loncom/interface/londocs.pm 2003/01/19 11:57:24 1.44 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.40 2002/12/09 22:27:20 www Exp $ +# $Id: londocs.pm,v 1.44 2003/01/19 11:57:24 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -275,7 +275,7 @@ sub checkonthis { my ($r,$url,$level,$title)=@_; $alreadyseen{$url}=1; $r->rflush(); - if ($url) { + if (($url) && ($url!~/^\/uploaded\//) && ($url!~/\*$/)) { $r->print('
'); for (my $i=0;$i<=$level*5;$i++) { $r->print(' '); @@ -560,15 +560,6 @@ function changename(folder,index,oldtitl } } -
- - - -
-
- - -
ENDNEWSCRIPT } @@ -578,6 +569,15 @@ ENDNEWSCRIPT unless ($showdoc) { if ($allowed) { $r->print(< + + + + +
+ + +
@@ -585,20 +585,22 @@ ENDNEWSCRIPT ENDCOURSEVERIFY } # --------------------------------------------------------- Standard documents - $r->print(''); + $r->print('
'); if (($standard) && ($allowed) && (!$forcesupplement)) { - $r->print(' +

Main Course Documents

'); + $r->print('

Main Course Documents

'); my $folder=$ENV{'form.folder'}; unless ($folder=~/^default/) { $folder='default'; } $hadchanges=0; &editor($r,$coursenum,$coursedom,$folder,$allowed); if ($hadchanges) { - $r->print('

Changes will become active after re-initializing course or at next login.

'); + $r->print(''. +'

Changes will become active after or at next login.

'); } my $folderseq='/uploaded/'.$coursedom.'/'.$coursenum.'/default_'.time. '.sequence'; $r->print(<
@@ -682,7 +684,7 @@ ENDFORM # ----------------------------------------------------- Supplemental documents if (!$forcestandard) { $r->print( - ' +
Upload a new main course document Import a published document Special documents

Supplemental Course Documents

'); + '

Supplemental Course Documents

'); my $folder=$ENV{'form.folder'}; unless ($folder=~/supplemental/) { $folder='supplemental'; } &editor($r,$coursenum,$coursedom,$folder,$allowed); @@ -692,7 +694,7 @@ ENDFORM '.sequence'; $r->print(<
Upload a new supplemental course document Import a published document Special documents