[LON-CAPA-cvs] cvs: loncom /interface lonnavdisplay.pm lonnavmaps.pm /localize/localize de.pm

schulted schulted@source.lon-capa.org
Mon, 16 Mar 2009 15:25:46 -0000


schulted		Mon Mar 16 15:25:46 2009 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm lonnavdisplay.pm 
    /loncom/localize/localize	de.pm 
  Log:
  Realized the sort function on change of the drop-down menu without the "Sort by:"-button, because of ergonomic reasons.
  Added text as a description for the toolbar.
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.430 loncom/interface/lonnavmaps.pm:1.431
--- loncom/interface/lonnavmaps.pm:1.430	Wed Feb 25 21:06:27 2009
+++ loncom/interface/lonnavmaps.pm	Mon Mar 16 15:25:40 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.430 2009/02/25 21:06:27 schulted Exp $
+# $Id: lonnavmaps.pm,v 1.431 2009/03/16 15:25:40 schulted Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1463,6 +1463,7 @@
         } else {
 	    $result .= '</tr><tr>'; 
         }
+	$result.="<td class=\"LC_middle\">".mt('Tools:')."</td>";
 	$result.=&show_linkitems_toolbar($args->{'linkitems'});
         if ($args->{'sort_html'}) {
 	    if ($env{'environment.remotenavmap'} ne 'on') {
@@ -1489,7 +1490,7 @@
     $result .= "<br />\n";
 
     # Data
-    $result .= '<table id="LC_tableOfContent">' ."\n";
+    $result.=&Apache::loncommon::start_data_table("LC_tableOfContent");    
 
     my $res = "Apache::lonnavmaps::resource";
     my %condenseStatuses =
@@ -1733,7 +1734,7 @@
             $rownum ++;
             my $backgroundColor = $backgroundColors[$rownum % scalar(@backgroundColors)];
             
-            $result .= "  <tr class='$backgroundColor'>\n";
+            $result .= &Apache::loncommon::start_data_table_row();
 
             # Set up some data about the parts that the cols might want
             my $filter = $it->{FILTER};
@@ -1759,7 +1760,7 @@
                 }
                 $result .= $colHTML . "\n";
             }
-            $result .= "    </tr>\n";
+            $result .= &Apache::loncommon::end_data_table_row();
             $args->{'isNewBranch'} = 0;
         }
 
@@ -1795,8 +1796,8 @@
 </script>";
     }
 
-    $result .= "</table>";
-    
+    $result.=&Apache::loncommon::end_data_table();
+
     if ($r) {
         $r->print($result);
         $result = "";
Index: loncom/interface/lonnavdisplay.pm
diff -u loncom/interface/lonnavdisplay.pm:1.7 loncom/interface/lonnavdisplay.pm:1.8
--- loncom/interface/lonnavdisplay.pm:1.7	Mon Mar  9 13:27:56 2009
+++ loncom/interface/lonnavdisplay.pm	Mon Mar 16 15:25:40 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavdisplay.pm,v 1.7 2009/03/09 13:27:56 schulted Exp $
+# $Id: lonnavdisplay.pm,v 1.8 2009/03/16 15:25:40 schulted Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -293,11 +293,11 @@
     }
 
     my %selected=($env{'form.sort'} => 'selected=on');
-    my $sort_html=("<form>
+    my $sort_html=("<form name=\"sortForm\">
                  <nobr>
                     <input type=\"hidden\" name=\"showOnlyHomework\" value=\"".$env{'form.showOnlyHomework'}."\" />
-                    <input type=\"submit\" value=\"".&mt('Sort by:')."\" />
-                    <select name=\"sort\">
+                    ".&mt('Sort by:')."
+                    <select name=\"sort\" onChange=\"document.sortForm.submit()\">
                        <option value=\"default\" $selected{'default'}>".&mt('Default')."</option>
                        <option value=\"title\"   $selected{'title'}  >".&mt('Title')."</option>
                        <option value=\"duedate\" $selected{'duedate'}>".&mt('Duedate')."</option>
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.255 loncom/localize/localize/de.pm:1.256
--- loncom/localize/localize/de.pm:1.255	Fri Mar 13 15:39:38 2009
+++ loncom/localize/localize/de.pm	Mon Mar 16 15:25:45 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.255 2009/03/13 15:39:38 bisitz Exp $
+# $Id: de.pm,v 1.256 2009/03/16 15:25:45 schulted Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -16807,6 +16807,9 @@
    'Portfolio Availability'
 => 'Portfolio-Verfügbarkeit',
 
+   'Tools:'
+=> 'Werkzeuge:',
+
    ''
 => '',