--- loncom/interface/groupsort.pm 2009/03/13 11:45:27 1.64
+++ loncom/interface/groupsort.pm 2009/03/13 15:39:43 1.65
@@ -2,7 +2,7 @@
# The LON-CAPA group sort handler
# Allows for sorting prior to import into RAT.
#
-# $Id: groupsort.pm,v 1.64 2009/03/13 11:45:27 bisitz Exp $
+# $Id: groupsort.pm,v 1.65 2009/03/13 15:39:43 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -347,10 +347,14 @@ END
$r->print(&Apache::loncommon::inhibit_menu_check('input'));
# ---
-
- if ($env{'form.recover'}) {
+
+ my $buttontext = $lt{'re'};
+ if ($env{'form.bookmarks'}) {
+ $buttontext = $lt{'ip'}
+ }
+ if ($env{'form.recover'} || $env{'form.bookmarks'}) {
$r->print(<
END
}
- $r->print(&Apache::loncommon::start_data_table()
- .&Apache::loncommon::start_data_table_header_row());
- if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) {
- $r->print("
'); + if ($env{'form.bookmarks'}) { + $r->print(&mt('There are no resources in your bookmarks to import.')); + } + $r->print('
'); + } } else { $r->print(&Apache::loncommon::start_page(undef,$js, {'only_body' => 1})); @@ -428,8 +441,10 @@ END } } if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) { - $r->print(&Apache::loncommon::end_data_table() - .""); + if ($clen > 0) { + $r->print(&Apache::loncommon::end_data_table()); + } + $r->print(''); } else { $r->print(<