--- loncom/interface/londocs.pm 2009/05/21 02:47:48 1.325.2.1
+++ loncom/interface/londocs.pm 2010/01/22 01:07:08 1.325.2.4
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.325.2.1 2009/05/21 02:47:48 raeburn Exp $
+# $Id: londocs.pm,v 1.325.2.4 2010/01/22 01:07:08 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -145,7 +145,7 @@ sub dumpcourse {
my ($r) = @_;
my $type = &Apache::loncommon::course_type();
$r->print(&Apache::loncommon::start_page('Dump '.$type.' DOCS to Construction Space').
- '
');
+ &mt('Export').'" />');
}
}
@@ -507,7 +551,7 @@ sub create_ims_store {
my $manifestfilename = $$tempexport.$manifest;
if ($ims_manifest = Apache::File->new('>'.$manifestfilename)) {
$$manifestok=1;
- print $ims_manifest
+ print $ims_manifest
''."\n".
'';
+';
}
if ($ispage) {
my $pagename=&escape($pagetitle);
@@ -2010,12 +2054,12 @@ END
$line.=(<
$form_start
-
+
$form_end
$form_start
-
+
$form_end
|
$form_start $rand_order_text $form_end |
@@ -2098,7 +2142,7 @@ sub checkonthis {
if (($errorcount) ||
($warningcount)) {
if ($errorcount) {
- $r->print('
'.
+ $r->print('
'.
&mt('[quant,_1,error]',$errorcount).'');
}
if ($warningcount) {
@@ -2488,14 +2532,19 @@ 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");
+ &mt('re-initializing '.$course_type).'" onclick="reinit(this.form)" />').
+$help{'Caching'}.''."\n\n");
+
}
@@ -2564,7 +2613,7 @@ sub handler {
&init_breadcrumbs('dumpcourse','Dump '.&Apache::loncommon::course_type().' DOCS to Construction Space');
&dumpcourse($r);
} elsif ($allowed && $env{'form.exportcourse'}) {
- &init_breadcrumbs('exportcourse','Export '.&Apache::loncommon::course_type().' to IMS');
+ &init_breadcrumbs('exportcourse','IMS Export');
&exportcourse($r);
} else {
# is this a standard course?
@@ -2648,7 +2697,11 @@ sub handler {
$script .= &editing_js($udom,$uname);
}
# -------------------------------------------------------------------- Body tag
- $script = '';
+ $script = ''."\n";
my $brcrum = [{href=>"/adm/createuser",text=>"$type Documents"}];
$r->print(&Apache::loncommon::start_page("$type Documents", $script,
{'force_register' => $showdoc,
@@ -2772,7 +2825,8 @@ sub handler {
'grpo' => 'Group Portfolios',
'rost' => 'Course Roster',
'abou' => 'About User',
- 'imsf' => 'Import IMS package',
+ 'imsf' => 'IMS Import',
+ 'imsl' => 'Import IMS package',
'file' => 'File',
'title' => 'Title',
'comment' => 'Comment',
@@ -2856,7 +2910,12 @@ ENDCOURSEVERIFY
}
my $postexec='';
if ($folder eq 'default') {
- $r->print('');
+ $r->print(''."\n"
+ );
} else {
#$postexec='self.close();';
}
@@ -2914,27 +2973,27 @@ $uploadtag
ENDFORM
unless ($env{'form.pagepath'}) {
@@ -2944,13 +3003,13 @@ ENDFORM
$uploadtag
- $help{'Adding_External_Resource'}
ENDFORM
}
@@ -2963,7 +3022,7 @@ ENDFORM
$help{'Adding_Folders'}
@@ -2972,7 +3031,7 @@ value="$lt{'newf'}" />$help{'Adding_Fold
$help{'Adding_Pages'}
@@ -2999,7 +3058,7 @@ $uploadtag
$help{'Simple Page'}
+onclick="javascript:makesmppage();" /> $help{'Simple Page'}
@@ -3032,7 +3091,7 @@ $uploadtag
+onclick="javascript:makebulboard();" />
$help{'Bulletin Board'}
@@ -3050,7 +3109,7 @@ $uploadtag
+onclick="javascript:makeabout();" />
@@ -3156,7 +3215,7 @@ $lt{'comment'}:
$help{'Adding_Folders'}
@@ -3165,7 +3224,7 @@ value="$lt{'newf'}" /> $help{'Adding_Fol
$help{'Adding_External_Resource'}