--- loncom/interface/londocs.pm 2002/12/12 18:14:32 1.41 +++ loncom/interface/londocs.pm 2003/01/23 19:00:06 1.46 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.41 2002/12/12 18:14:32 www Exp $ +# $Id: londocs.pm,v 1.46 2003/01/23 19:00:06 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -166,6 +166,7 @@ sub editor { my $ext='false'; if ($url=~/^http\:\/\//) { $ext='true'; } $url=~s/\:/\:/g; + $name=~s/\:/\:/g; $Apache::lonratedt::resources[$idx]= $name.':'.$url.':'.$ext.':normal:res'; } @@ -560,15 +561,6 @@ function changename(folder,index,oldtitl } } -
- - - -
-
- - -
ENDNEWSCRIPT } @@ -578,6 +570,15 @@ ENDNEWSCRIPT unless ($showdoc) { if ($allowed) { $r->print(< + + + + +
+ + +
@@ -585,20 +586,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 for your current session after , or the next time you log in.

'); } my $folderseq='/uploaded/'.$coursedom.'/'.$coursenum.'/default_'.time. '.sequence'; $r->print(<
@@ -682,7 +685,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 +695,7 @@ ENDFORM '.sequence'; $r->print(<
Upload a new supplemental course document Import a published document Special documents