--- loncom/interface/londocs.pm 2003/07/07 07:32:16 1.63 +++ loncom/interface/londocs.pm 2003/09/02 15:49:42 1.72 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.63 2003/07/07 07:32:16 www Exp $ +# $Id: londocs.pm,v 1.72 2003/09/02 15:49:42 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -265,7 +265,7 @@ END } } $url=~s/^http\&colon\;\/\//\/adm\/wrapper\/ext\//; - if ($residx) { + if (($residx) && ($folder!~/supplemental/)) { $url.=(($url=~/\?/)?'&':'?').'symb='. &Apache::lonnet::escape(&Apache::lonnet::symbclean( &Apache::lonnet::declutter('uploaded/'. @@ -329,9 +329,12 @@ sub checkonthis { $r->print(' '); } $r->print('- Rendering: '); + my $oldpath=$ENV{'request.filename'}; + $ENV{'request.filename'}=&Apache::lonnet::filelocation('',$url); &Apache::lonxml::xmlparse($r,'web', &Apache::lonnet::getfile( &Apache::lonnet::filelocation('',$url))); + $ENV{'request.filename'}=$oldpath; if (($Apache::lonxml::errorcount) || ($Apache::lonxml::warningcount)) { if ($Apache::lonxml::errorcount) { @@ -375,12 +378,22 @@ sub handler { # --------------------------------------------- Initialize help topics for this foreach ('Adding_Course_Doc','Main_Course_Documents', 'Adding_External_Resource','Navigate_Content', - 'Adding_Folders','Docs_Overview', - 'Creating_From_Template','Supplemental', + 'Adding_Folders','Docs_Overview', 'Load_Map', + 'Supplemental', 'Score_Upload_Form', 'Importing_LON-CAPA_Resource','Uploading_From_Harddrive') { $help{$_}=&Apache::loncommon::help_open_topic('Docs_'.$_); } - + # Composite help files + $help{'Syllabus'} = &Apache::loncommon::help_open_topic( + 'Docs_About_Syllabus,Docs_Editing_Templated_Pages'); + $help{'Simple Page'} = &Apache::loncommon::help_open_topic( + 'Docs_About_Simple_Page,Docs_Editing_Templated_Pages'); + $help{'Bulletin Board'} = &Apache::loncommon::help_open_topic( + 'Docs_About_Bulletin_Board,Docs_Editing_Templated_Pages'); + $help{'My Personal Info'} = &Apache::loncommon::help_open_topic( + 'Docs_About_My_Personal_Info,Docs_Editing_Templated_Pages'); + $help{'Caching'} = &Apache::loncommon::help_open_topic('Caching'); + if ($ENV{'form.verify'}) { my $loaderror=&Apache::lonnet::overloaderror($r); @@ -398,6 +411,7 @@ sub handler { } } &untiehash(); + $r->print('

Done.

'); } elsif ($ENV{'form.versions'}) { $r->print('Check Versions'. &Apache::loncommon::bodytag('Check Course Document Versions')); @@ -485,6 +499,7 @@ ENDHEADERS } } $r->print(''); + $r->print('

Done.

'); } else { $r->print('

No content modifications yet.

'); } @@ -498,7 +513,6 @@ ENDHEADERS my $script=''; my $allowed; my $events=''; - my $buttons=''; my $showdoc=0; &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, ['folder','foldername']); @@ -520,7 +534,6 @@ ENDHEADERS $script=''.&Apache::lonmenu::registerurl(1,undef).''. '
'. '

Changes will become active for your current session after , or the next time you log in.

'); +$ENV{'request.role'}.'" value="1" />, or the next time you log in.'. +$help{'Caching'}.''); } my $folderseq='/uploaded/'.$coursedom.'/'.$coursenum.'/default_'.time. '.sequence'; @@ -722,10 +729,11 @@ $help{'Importing_LON-CAPA_Resource'}


- -
+ +value="Select Map"> +$help{'Load_Map'}

@@ -755,7 +763,7 @@ value="External Resource" /> $help{'Addi value="Syllabus=/public/$coursedom/$coursenum/syllabus"> - $help{'Creating_From_Template'} + $help{'Syllabus'}
@@ -774,7 +782,7 @@ $help{'Navigate_Content'} $help{'Creating_From_Template'} +onClick="javascript:makesmppage();" /> $help{'Simple Page'}
@@ -783,7 +791,7 @@ onClick="javascript:makesmppage();" /> $ $help{'Creating_From_Template'} +onClick="javascript:makesmpproblem();" />$help{'Simple Problem'}
@@ -793,6 +801,7 @@ onClick="javascript:makesmpproblem();" / +$help{'Score_Upload_Form'}
@@ -802,7 +811,7 @@ onClick="javascript:makeexamupload();" / -$help{'Creating_From_Template'} +$help{'Bulletin Board'}
@@ -812,7 +821,7 @@ $help{'Creating_From_Template'} value="$plainname=/adm/$udom/$uname/aboutme"> -$help{'Creating_From_Template'} +$help{'My Personal Info'}
@@ -899,7 +908,7 @@ value="External Resource" /> $help{'Addi value="Syllabus=/public/$coursedom/$coursenum/syllabus"> -$help{'Creating_From_Template'} +$help{'Syllabus'}
@@ -909,7 +918,7 @@ $help{'Creating_From_Template'} value="$plainname=/adm/$udom/$uname/aboutme"> -$help{'Creating_From_Template'} +$help{'My Personal Info'}