--- loncom/interface/londocs.pm 2009/07/13 17:34:28 1.379
+++ loncom/interface/londocs.pm 2009/07/27 20:35:40 1.382
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.379 2009/07/13 17:34:28 bisitz Exp $
+# $Id: londocs.pm,v 1.382 2009/07/27 20:35:40 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1273,10 +1273,11 @@ sub print_paste_buffer {
my ($r,$container) = @_;
return if (!defined($env{'docs.markedcopy_url'}));
- $r->print(<
-ENDPASTE
- $r->print(' ');
+ $r->print('
'.&mt('Parameters').':
'.&mt('Parameters:'). + '
' + .&mt('Caution: this folder is set to randomly pick a subset' + .' of resources. Adding or removing resources from this' + .' folder will change the set of resources that the' + .' students see, resulting in spurious or missing credit' + .' for completed problems, not limited to ones you' + .' modify. Do not modify the contents of this folder if' + .' it is in active student use.') + .'
' + ); + } + if ($is_random_order) { + $r->print('' + .&mt('Caution: this folder is set to randomly order its' + .' contents. Adding or removing resources from this folder' + .' will change the order of resources shown.') + .'
' + ); + } + $r->print(''.&mt('Caution: this folder is set to randomly pick a subset of resources. Adding or removing resources from this folder will change the set of resources that the students see, resulting in spurious or missing credit for completed problems, not limited to ones you modify. Do not modify the contents of this folder if it is in active student use.').'
'); - } - if ($is_random_order) { - $r->print(''.&mt('Caution: this folder is set to randomly order its contents. Adding or removing resources from this folder will change the order of resources shown.').'
'); - } - $r->print(&Apache::loncommon::start_data_table()); + + my $output; foreach my $res (@LONCAPA::map::order) { - my ($name,$url)=split(/\:/,$LONCAPA::map::resources[$res]); - $name=&LONCAPA::map::qtescape($name); - $url=&LONCAPA::map::qtescape($url); - unless ($name) { $name=(split(/\//,$url))[-1]; } - unless ($name) { $idx++; next; } - $r->print(&entryline($idx,$name,$url,$folder,$allowed,$res, - $coursenum)); - $idx++; - $shown++; - } - unless ($shown) { - $r->print('' - .&mt('Currently no documents.') - .'
' + .&mt('Currently no documents.') + .'
' + ); } - $r->print(&Apache::loncommon::end_data_table()); if ($allowed) { &print_paste_buffer($r,$container); } @@ -1919,7 +1950,7 @@ END my $pagefile; if ($uploaded) { if ($extension eq 'sequence') { - $icon=$iconpath.'/folder_closed.gif'; + $icon=$iconpath.'/navmap.folder.closed.gif'; $url=~/\Q$coursenum\E\/([\/\w]+)\.sequence$/; $url='/adm/coursedocs?'; $folderarg=$1; @@ -2942,14 +2973,14 @@ HIDDENFORM $activeClass = 0; } } - $r->print('