--- loncom/interface/londocs.pm 2010/01/21 23:19:17 1.416
+++ loncom/interface/londocs.pm 2010/01/30 13:06:43 1.417
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.416 2010/01/21 23:19:17 raeburn Exp $
+# $Id: londocs.pm,v 1.417 2010/01/30 13:06:43 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -124,10 +124,8 @@ sub dumpbutton {
return $link.' '.
&Apache::loncommon::help_open_topic('Docs_Dump_Course_Docs').'
';
} else {
- return '
'.
- &mt('Dump '.$crstype.
- ' DOCS to Construction Space: available on other servers').
- '
';
+ return &mt('Dump '.$crstype.
+ ' DOCS to Construction Space: available on other servers');
}
}
@@ -2892,7 +2890,7 @@ sub create_form_ul {
'upls' => 'Upload a new supplemental '.lc($crstype).' document',
'impp' => 'Import a document',
'copm' => 'All documents out of a published map into this folder',
- 'upld' => 'Upload Document',
+ 'upld' => 'Import Document',
'srch' => 'Search',
'impo' => 'Import',
'book' => 'Import Bookmarks',
@@ -2966,9 +2964,9 @@ FUFORM
SEDFFORM
my @simpleeditdefaultforma = (
- { '' => "$uploadtag$lt{'srch'}" },
- { '' => "$lt{'impo'}$help{'Importing_LON-CAPA_Resource'}" },
- { '' => "$lt{'book'}" },
+ { '' => "$uploadtag$lt{'srch'}" },
+ { '' => "$lt{'impo'}$help{'Importing_LON-CAPA_Resource'}" },
+ { '' => "$lt{'book'}" },
);
$simpleeditdefaultform .= create_form_ul(create_list_elements(@simpleeditdefaultforma));
$simpleeditdefaultform .=(<
NGFFORM
@specialdocumentsforma=(
- {''=>$newpageform},
- {''=>$newsylform},
- {''=>$newgroupfileform},
+ {''=>$newpageform},
+ {''=>$newsylform},
+ {''=>$newgroupfileform},
);
}
- push @specialdocumentsforma, ({''=>$newnavform},
- {''=>$newsmppageform},
- {''=>$newsmpproblemform},
- {''=>$newdropboxform},
- {''=>$newexuploadform},
- {''=>$newbulform},
- {''=>$newaboutmeform},
- {''=>$newaboutsomeoneform},
- {''=>$newrosterform},);
+ push @specialdocumentsforma, ({''=>$newnavform},
+ {''=>$newsmppageform},
+ {''=>$newsmpproblemform},
+ {''=>$newdropboxform},
+ {''=>$newexuploadform},
+ {''=>$newbulform},
+ {''=>$newaboutmeform},
+ {''=>$newaboutsomeoneform},
+ {''=>$newrosterform},);
$specialdocumentsform = create_form_ul(create_list_elements(@specialdocumentsforma));
if($env{'form.pagepath'}) {
@specialdocumentsforma=(
- {''=>$newsmpproblemform},
- {''=>$newexuploadform}
+ {''=>$newsmpproblemform},
+ {''=>$newexuploadform}
);
$specialdocumentsform= create_form_ul(create_list_elements(@specialdocumentsforma));
}
my @tools = (
- {''=>$extresourcesform},
- {''=>$imspform},
- {''=>$recoverform},
+# {''=>$extresourcesform},
+# {''=>$imspform},
+ {''=>$recoverform},
);
+my @importdoc = (
+ {''=>$extresourcesform},
+ {''=>$imspform},
+);
+$fileuploadform = create_form_ul(create_list_elements(@importdoc)) . '
' . $fileuploadform;
my %orderhash = (
'00' => ['Newfolder',$newfolderform],
- 'aa' => ['Upload Document',$fileuploadform],
+ 'aa' => ['Import Documents',$fileuploadform],
'bb' => ['Published Resources',$simpleeditdefaultform],
'cc' => ['Special Documents',$specialdocumentsform],
'dd' => ['Tools', create_form_ul(create_list_elements(@tools)).&generate_admin_options($containertag,$uploadtag,\%help,\%env)],
@@ -3403,13 +3406,19 @@ SNAMFORM
my @specialdocs = (
- {''=>$supnewextform},
- {''=>$supnewsylform},
- {''=>$supnewaboutmeform},
+ {''
+ =>$supnewsylform},
+ {''
+ =>$supnewaboutmeform},
);
+my @supimportdoc = (
+ {''
+ =>$supnewextform},
+ );
+$supupdocform = create_form_ul(create_list_elements(@supimportdoc)) . '
' . $supupdocform;
my %suporderhash = (
'00' => ['Supnewfolder', $supnewfolderform],
- 'ee' => ['Upload Document',$supupdocform],
+ 'ee' => ['Import Documents',$supupdocform],
'ff' => ['Special Documents',create_form_ul(create_list_elements(@specialdocs))]
);
@@ -3469,15 +3478,20 @@ sub generate_admin_options {
my $dumpbut=&dumpbutton();
my $exportbut=&exportbutton();
my @list = (
- {''=>"$lt{'vc'}$help{'Verify_Content'}"},
- {''=>"$lt{'cv'}$help{'Check_Resource_Versions'}"},
+ {''
+ => "$lt{'vc'}$help{'Verify_Content'}"},
+ {''
+ =>"$lt{'cv'}$help{'Check_Resource_Versions'}"},
);
if($dumpbut ne ''){
- push @list, {''=>$dumpbut};
+ push @list, {''=>$dumpbut};
}
- push @list, ({''=>$exportbut},
- {''=>"$lt{'ls'}"},
- {''=>"$lt{'sl'}"},
+ push @list, ({''
+ =>$exportbut},
+ {''
+ =>"$lt{'ls'}"},
+ {''
+ =>"$lt{'sl'}"},
);
return '';
@@ -3494,7 +3508,7 @@ sub generate_edit_table {
if($env{'form.active'} ne ''){
$activetab = $env{'form.active'};
}
- $form = '';
+ $form = '
';
$form .= '
';
foreach my $name (sort(keys(%orderhash))){
if($name ne '00'){