--- loncom/interface/londocs.pm 2003/06/09 22:26:32 1.60
+++ loncom/interface/londocs.pm 2003/07/24 22:06:07 1.69.2.1
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.60 2003/06/09 22:26:32 albertel Exp $
+# $Id: londocs.pm,v 1.69.2.1 2003/07/24 22:06:07 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -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);
@@ -539,13 +552,7 @@ ENDHEADERS
$iconpath = $r->dir_config('lonIconsURL') . "/";
my $now=time;
-#
-# FIXME: hack to disable new problem
-#
- my $noeggforyou='';
- unless ($ENV{'user.debug'}) {
- $noeggforyou='alert("Sorry, not implemented yet."); return 0;';
- }
+
# print screen
$r->print(<
-
-
+