--- loncom/interface/londocs.pm 2009/04/15 12:44:24 1.364
+++ loncom/interface/londocs.pm 2009/06/05 10:51:13 1.369
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.364 2009/04/15 12:44:24 bisitz Exp $
+# $Id: londocs.pm,v 1.369 2009/06/05 10:51:13 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -142,7 +142,7 @@ sub dumpcourse {
my ($r) = @_;
my $type = &Apache::loncommon::course_type();
$r->print(&Apache::loncommon::start_page('Dump '.$type.' DOCS to Construction Space').
- '
$form_start
-
+
$form_end
$form_start
-
+
$form_end
|
$form_start $rand_order_text $form_end |
@@ -2094,7 +2112,7 @@ sub checkonthis {
if (($errorcount) ||
($warningcount)) {
if ($errorcount) {
- $r->print('
'.
+ $r->print('
'.
&mt('[quant,_1,error]',$errorcount).'');
}
if ($warningcount) {
@@ -2119,7 +2137,7 @@ sub checkonthis {
unless ($url=~/\$/) {
$r->print(''.&mt('not found').'');
} else {
- $r->print(''.&mt('unable to verify variable URL').'');
+ $r->print(''.&mt('unable to verify variable URL').'');
}
} else {
$r->print(''.&mt('access denied').'');
@@ -2484,13 +2502,17 @@ sub changewarning {
$message='Changes will become active for your current session after [_1], or the next time you log in.';
}
$r->print("\n\n".
-''."\n".
+''."\n".
''."\n\n");
}
@@ -2647,7 +2669,11 @@ sub handler {
$script .= &editing_js($udom,$uname);
}
# -------------------------------------------------------------------- Body tag
- $script = '';
+ $script = '';
my $brcrum = [{href=>"/adm/createuser",text=>"$type Documents"}];
$r->print(&Apache::loncommon::start_page("$type Documents", $script,
{'force_register' => $showdoc,
@@ -2775,7 +2801,7 @@ sub handler {
'title' => 'Title',
'comment' => 'Comment',
'parse' => 'Upload embedded images/multimedia files if HTML file!',
- 'nd' => 'New Document',
+ 'nd' => 'Upload Document',
'pm' => 'Published Map',
'sd' => 'Special Document',
'mo' => 'More Options',
@@ -2821,20 +2847,20 @@ FUFORM
@@ -2925,7 +2951,12 @@ HIDDENFORM
}
my $postexec='';
if ($folder eq 'default') {
- $r->print('');
+ $r->print(''
+ );
} else {
#$postexec='self.close();';
}
@@ -2943,14 +2974,14 @@ HIDDENFORM
my $recoverform=(<
-
+
RFORM
my $imspform=(<
-
+
IMSPFORM
@@ -2971,7 +3002,7 @@ NNFORM
$help{'Simple Page'}
+ onclick="javascript:makesmppage();" /> $help{'Simple Page'}
NSPFORM
@@ -2982,7 +3013,7 @@ NSPFORM
$help{'Simple Problem'}
+ onclick="javascript:makesmpproblem();" />$help{'Simple Problem'}
@@ -2994,7 +3025,7 @@ NSPROBFORM
+ onclick="javascript:makedropbox();" />
NDBFORM
@@ -3005,7 +3036,7 @@ NDBFORM
+ onclick="javascript:makeexamupload();" />
$help{'Score_Upload_Form'}
@@ -3017,7 +3048,7 @@ NEXUFORM
+ onclick="javascript:makebulboard();" />
$help{'Bulletin Board'}
@@ -3041,7 +3072,7 @@ NAMFORM
+ onclick="javascript:makeabout();" />
NASOFORM
@@ -3071,7 +3102,7 @@ my $newfolderform;
$help{'Adding_Pages'}
@@ -3083,7 +3114,7 @@ NPFORM
$help{'Adding_Folders'}
@@ -3125,7 +3156,7 @@ if($env{'form.pagepath'}) {
}
my %orderhash = (
- 'aa' => ['New Document',$fileuploadform.'
'.$newfolderform],
+ 'aa' => ['Upload Document',$fileuploadform.'
'.$newfolderform],
'bb' => ['Published Documents',$simpleeditdefaultform],
'cc' => ['Special Documents',$specialdocumentsform],
'dd' => ['Tools',$extresourcesform.'
'.$imspform.'
'.$recoverform.'
'.&generate_admin_options($containertag,$uploadtag,\%help,\%env)],
@@ -3200,7 +3231,7 @@ SUPDOCFORM
$help{'Adding_Folders'}
@@ -3213,7 +3244,7 @@ SNFFORM
$help{'Adding_External_Resource'}
@@ -3246,7 +3277,7 @@ SNAMFORM
my %suporderhash = (
- 'ee' => ['New Document',$supupdocform.'
'.$supnewfolderform],
+ 'ee' => ['Upload Document',$supupdocform.'
'.$supnewfolderform],
'ff' => ['Special Documents',$supnewextform.'
'.$supnewsylform.'
'.$supnewaboutmeform],
'zz' => ['Hide all Options'],
);