[LON-CAPA-cvs] cvs: loncom /homework response.pm /imspackages imsimport.pm imsimportdocs.pm /interface createaccount.pm londocs.pm lonnavmaps.pm lonsearchcat.pm lonuserutils.pm slotrequest.pm /publisher testbankimport.pm

bisitz bisitz@source.lon-capa.org
Mon, 04 May 2009 16:46:05 -0000


This is a MIME encoded message

--bisitz1241455565
Content-Type: text/plain

bisitz		Mon May  4 16:46:05 2009 EDT

  Modified files:              
    /loncom/homework	response.pm 
    /loncom/imspackages	imsimport.pm imsimportdocs.pm 
    /loncom/interface	createaccount.pm londocs.pm lonnavmaps.pm 
                     	lonsearchcat.pm lonuserutils.pm slotrequest.pm 
    /loncom/publisher	testbankimport.pm 
  Log:
  XHTML:
  - XHTML conform <img> tag closure
  - Added some missing alt attributes to <img>
  
  
--bisitz1241455565
Content-Type: text/plain
Content-Disposition: attachment; filename="bisitz-20090504164605.txt"

Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.214 loncom/homework/response.pm:1.215
--- loncom/homework/response.pm:1.214	Fri Apr 17 01:00:15 2009
+++ loncom/homework/response.pm	Mon May  4 16:45:44 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.214 2009/04/17 01:00:15 www Exp $
+# $Id: response.pm,v 1.215 2009/05/04 16:45:44 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -546,7 +546,7 @@
     newwin = window.open("/adm/dragmath/applet/MaximaPopup.html","","width=565,height=400,resizable");
 }
 </script>
-<a href="javascript:edit_${id}_${field}('${field}');void(0);"><img class="stift" src='$iconpath/stift.gif' alt='$button' title='$button'/></a>
+<a href="javascript:edit_${id}_${field}('${field}');void(0);"><img class="stift" src="$iconpath/stift.gif" alt="$button" title="$button" /></a>
 ENDFORMULABUTTON
 }
 
Index: loncom/imspackages/imsimport.pm
diff -u loncom/imspackages/imsimport.pm:1.29 loncom/imspackages/imsimport.pm:1.30
--- loncom/imspackages/imsimport.pm:1.29	Thu Apr 23 09:40:46 2009
+++ loncom/imspackages/imsimport.pm	Mon May  4 16:45:51 2009
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 # 
-# $Id: imsimport.pm,v 1.29 2009/04/23 09:40:46 bisitz Exp $
+# $Id: imsimport.pm,v 1.30 2009/05/04 16:45:51 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -90,7 +90,7 @@
   newWindow = window.open("","CreateDir","HEIGHT=400,WIDTH=750,scrollbars=yes")
   newWindow.document.open()
   newWindow.document.write('$start_page')
-  newWindow.document.write("\\n<img border='0' src='/adm/lonInterFace/author.jpg' alt='[Author Header]'>\\n")
+  newWindow.document.write("\\n<img border='0' src='/adm/lonInterFace/author.jpg' alt='[Author Header]' />\\n")
   newWindow.document.write("<table border='0' cellspacing='0' cellpadding='0' width='600'>\\n")
   newWindow.document.write("<tr><td width='2'>&nbsp;</td><td width='3'>&nbsp;</td>\\n")
   newWindow.document.write("<td><h3>$lt{'loca'} <tt>$fullpath</tt></h3><h3>$lt{'newd'}</h3></td></tr>\\n")
Index: loncom/imspackages/imsimportdocs.pm
diff -u loncom/imspackages/imsimportdocs.pm:1.21 loncom/imspackages/imsimportdocs.pm:1.22
--- loncom/imspackages/imsimportdocs.pm:1.21	Tue Aug 21 18:22:41 2007
+++ loncom/imspackages/imsimportdocs.pm	Mon May  4 16:45:51 2009
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: imsimportdocs.pm,v 1.21 2007/08/21 18:22:41 albertel Exp $
+# $Id: imsimportdocs.pm,v 1.22 2009/05/04 16:45:51 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -218,7 +218,7 @@
         </td>
        </tr>
        <tr bgcolor='#CCCCFF'>
-        <td valign='middle'><img src='/res/adm/pages/bl_step1.gif'>&nbsp;
+        <td valign="middle"><img src="/res/adm/pages/bl_step1.gif" alt="1" />&nbsp;
         </td>
         <td width='100%' align='left'>&nbsp;&nbsp;
          <font face='arial,helvetica,sans-serif'><b>Specify the Course Management system used to create the package.</b>&nbsp;&nbsp;
@@ -250,7 +250,7 @@
        <td colspan='2'>&nbsp;</td>
       </tr>
       <tr bgcolor='#CCCCFF'>
-        <td valign='middle'><img src='/res/adm/pages/bl_step2.gif'>&nbsp;
+        <td valign="middle"><img src="/res/adm/pages/bl_step2.gif" alt="2" />&nbsp;
         </td>
         <td width='100%' align='left'>&nbsp;&nbsp;
          <font face='arial,helvetica,sans-serif'><b>Locate the IMS content package you wish to upload.</b>&nbsp;&nbsp;
@@ -369,7 +369,7 @@
        </td>
       </tr>
       <tr bgcolor='#CCCCFF'>
-       <td valign='middle'><img src='/res/adm/pages/bl_step3.gif'>
+       <td valign="middle"><img src="/res/adm/pages/bl_step3.gif" alt="3" />
        </td>
        <td width='100%' align='left'>&nbsp;&nbsp;
         <font face='arial,helvetica,sans-serif'><b>Choose which content types you wish to import</b></font>
@@ -439,7 +439,7 @@
        <td colspan='2'>&nbsp;<br /><br /></td>
       </tr>
       <tr bgcolor='#CCCCFF'>
-       <td valign='middle'><img src='/res/adm/pages/bl_step4.gif'>
+       <td valign="middle"><img src="/res/adm/pages/bl_step4.gif" alt="4" />
        </td>
        <td width='100%' align='left'>&nbsp;&nbsp;
         <font face='arial,helvetica,sans-serif'><b>Choose display options for listing of contents of top level of package.</b></font>
@@ -673,7 +673,7 @@
        </td>
       </tr>
       <tr bgcolor='#CCCCFF'>
-       <td valign='middle'><img src='/res/adm/pages/bl_step5.gif'>
+       <td valign="middle"><img src="/res/adm/pages/bl_step5.gif" alt="5" />
        </td>
        <td width='100%' align='left'>&nbsp;&nbsp;
         <font face='arial,helvetica,sans-serif'><b>Your import is complete</b></font>
Index: loncom/interface/createaccount.pm
diff -u loncom/interface/createaccount.pm:1.35 loncom/interface/createaccount.pm:1.36
--- loncom/interface/createaccount.pm:1.35	Wed Apr 22 13:43:48 2009
+++ loncom/interface/createaccount.pm	Mon May  4 16:45:57 2009
@@ -3,7 +3,7 @@
 # institutional log-in ID (institutional authentication required - localauth
 #  or kerberos) or an e-mail address.
 #
-# $Id: createaccount.pm,v 1.35 2009/04/22 13:43:48 raeburn Exp $
+# $Id: createaccount.pm,v 1.36 2009/05/04 16:45:57 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1186,7 +1186,7 @@
             $output = '<input type="hidden" name="crypt" value="'.$md5sum.'" />'."\n".
                       &mt('Type in the letters/numbers shown below').'&nbsp;'.
                      '<input type="text" size="5" name="code" value="" /><br />'.
-                     '<img src="'.$captcha_params{'www_output_dir'}.'/'.$md5sum.'.png">';
+                     '<img src="'.$captcha_params{'www_output_dir'}.'/'.$md5sum.'.png" />';
             last;
         }
     }
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.364 loncom/interface/londocs.pm:1.365
--- loncom/interface/londocs.pm:1.364	Wed Apr 15 12:44:24 2009
+++ loncom/interface/londocs.pm	Mon May  4 16:45:57 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.364 2009/04/15 12:44:24 bisitz Exp $
+# $Id: londocs.pm,v 1.365 2009/05/04 16:45:57 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -397,10 +397,10 @@
                     $display .= '<img src="/adm/lonIcons/whitespace1.gif" class="LC_docs_spacer" /><img src="/adm/lonIcons/whitespace1.gif" class="LC_docs_spacer" />'."\n";
                 }
                 if ($curRes->is_sequence()) {
-                    $display .= '<img src="/adm/lonIcons/navmap.folder.open.gif">&nbsp;'."\n";
+                    $display .= '<img src="/adm/lonIcons/navmap.folder.open.gif" alt="" />&nbsp;'."\n";
                     $lastcontainer = $count + $startcount + $boards;
                 } elsif ($curRes->is_page()) {
-                    $display .= '<img src="/adm/lonIcons/navmap.page.open.gif">&nbsp;'."\n";
+                    $display .= '<img src="/adm/lonIcons/navmap.page.open.gif" alt="" />&nbsp;'."\n";
                     $lastcontainer = $count + $startcount + $boards;
                 }
                 my $currelem = $count+$boards+$startcount;
@@ -2094,7 +2094,7 @@
                  if (($errorcount) ||
                      ($warningcount)) {
 		     if ($errorcount) {
-                        $r->print('<img src="/adm/lonMisc/bomb.gif" /><span class="LC_error">'.
+                        $r->print('<img src="/adm/lonMisc/bomb.gif" alt="" /><span class="LC_error">'.
                           &mt('[quant,_1,error]',$errorcount).'</span>');
                      }
 		     if ($warningcount) {
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.433 loncom/interface/lonnavmaps.pm:1.434
--- loncom/interface/lonnavmaps.pm:1.433	Fri Mar 27 11:33:19 2009
+++ loncom/interface/lonnavmaps.pm	Mon May  4 16:45:57 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.433 2009/03/27 11:33:19 bisitz Exp $
+# $Id: lonnavmaps.pm,v 1.434 2009/05/04 16:45:57 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1419,15 +1419,15 @@
 	my $location=&Apache::loncommon::lonhttpdurl("/adm/lonMisc");
         if ($navmap->{LAST_CHECK}) {
             $result .= 
-                '<img src="'.$location.'/chat.gif"> '.&mt('New discussion since').' '.
+                '<img src="'.$location.'/chat.gif" alt="" /> '.&mt('New discussion since').' '.
                 strftime("%A, %b %e at %I:%M %P", localtime($navmap->{LAST_CHECK})).
                 '</td><td align="center" valign="bottom">&nbsp;&nbsp;'.
-                '<img src="'.$location.'/feedback.gif"> '.&mt('New message (click to open)').'<p>'.
+                '<img src="'.$location.'/feedback.gif" alt="" /> '.&mt('New message (click to open)').'<p>'.
                 '</td>'; 
         } else {
             $result .= '<td align="center" valign="bottom">&nbsp;&nbsp;'.
-                '<img src="'.$location.'/chat.gif"> '.&mt('Discussions').'</td><td align="center" valign="bottom">'.
-                '&nbsp;&nbsp;<img src="'.$location.'/feedback.gif"> '.&mt('New message (click to open)').
+                '<img src="'.$location.'/chat.gif" alt="" /> '.&mt('Discussions').'</td><td align="center" valign="bottom">'.
+                '&nbsp;&nbsp;<img src="'.$location.'/feedback.gif" alt="" /> '.&mt('New message (click to open)').
                 '</td>'; 
         }
 
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.305 loncom/interface/lonsearchcat.pm:1.306
--- loncom/interface/lonsearchcat.pm:1.305	Thu Feb 26 16:17:30 2009
+++ loncom/interface/lonsearchcat.pm	Mon May  4 16:45:57 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.305 2009/02/26 16:17:30 schafran Exp $
+# $Id: lonsearchcat.pm,v 1.306 2009/05/04 16:45:57 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3561,7 +3561,7 @@
     my $link = &display_url($jumpurl,[1,1,1]);
     
     my $result = 
-        $prefix.'<img src="'.&Apache::loncommon::icon($values{'url'}).'">';
+        $prefix.'<img src="'.&Apache::loncommon::icon($values{'url'}).'" alt="" />';
     if (exists($env{'form.sortfield'}) && 
         $env{'form.sortfield'} !~ /^(default|author|url|title)$/) {
         my $tmp = $values{$env{'form.sortfield'}};
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.89 loncom/interface/lonuserutils.pm:1.90
--- loncom/interface/lonuserutils.pm:1.89	Wed Apr 22 17:42:36 2009
+++ loncom/interface/lonuserutils.pm	Mon May  4 16:45:58 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.89 2009/04/22 17:42:36 bisitz Exp $
+# $Id: lonuserutils.pm,v 1.90 2009/05/04 16:45:58 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2572,7 +2572,7 @@
                     }
                     if ($env{'course.'.$env{'request.course.id'}.'.internal.showphoto'}) {
                         if ($displayphotos eq 'on' && $role eq 'st' && $in{'photo'} ne '') {
-                            $r->print('    <td align="right"><a href="javascript:photowindow('."'".$in{'photo'}."'".')"><img src="'.$in{'thumbnail'}.'" border="1"></a></td>');
+                            $r->print('    <td align="right"><a href="javascript:photowindow('."'".$in{'photo'}."'".')"><img src="'.$in{'thumbnail'}.'" border="1" alt="" /></a></td>');
                         } else {
                             $r->print('    <td>&nbsp;</td>  ');
                         }
Index: loncom/interface/slotrequest.pm
diff -u loncom/interface/slotrequest.pm:1.95 loncom/interface/slotrequest.pm:1.96
--- loncom/interface/slotrequest.pm:1.95	Thu Apr 23 17:33:54 2009
+++ loncom/interface/slotrequest.pm	Mon May  4 16:45:58 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler for requesting to have slots added to a students record
 #
-# $Id: slotrequest.pm,v 1.95 2009/04/23 17:33:54 bisitz Exp $
+# $Id: slotrequest.pm,v 1.96 2009/05/04 16:45:58 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1599,9 +1599,9 @@
         $output .= '<img src="'.$location.'" alt="" />';
     }
     if ($type eq 'page') {
-        $output .= '<img src="/adm/lonIcons/navmap.page.open.gif">&nbsp;'."\n";
+        $output .= '<img src="/adm/lonIcons/navmap.page.open.gif" alt="" />&nbsp;'."\n";
     } else {
-        $output .= '<img src="/adm/lonIcons/navmap.folder.open.gif">&nbsp;'."\n";
+        $output .= '<img src="/adm/lonIcons/navmap.folder.open.gif" alt="" />&nbsp;'."\n";
     }
     $output .= $title.'</td><td colspan="2">&nbsp;</td>'."\n";
     unshift (@{$maprows},$output);
Index: loncom/publisher/testbankimport.pm
diff -u loncom/publisher/testbankimport.pm:1.21 loncom/publisher/testbankimport.pm:1.22
--- loncom/publisher/testbankimport.pm:1.21	Sat Apr  4 21:45:57 2009
+++ loncom/publisher/testbankimport.pm	Mon May  4 16:46:05 2009
@@ -1,5 +1,5 @@
 # Handler for parsing text upload problem descriptions into .problems
-# $Id: testbankimport.pm,v 1.21 2009/04/04 21:45:57 bisitz Exp $
+# $Id: testbankimport.pm,v 1.22 2009/05/04 16:46:05 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -81,12 +81,12 @@
     newWindow = window.open("","CreateDir","HEIGHT=400,WIDTH=750,scrollbars=yes")
     newWindow.document.open()
     newWindow.document.write('$start_page')
-    newWindow.document.write("<img border='0' src='/adm/lonInterFace/author.jpg' alt='[Author Header]'>\\n")
+    newWindow.document.write("<img border='0' src='/adm/lonInterFace/author.jpg' alt='[Author Header]' />\\n")
     newWindow.document.write("<h3>$lt{'loca'}: <tt>$webpath</tt></h3><h3>$lt{'newd'}</h3>\\n")
     newWindow.document.write("<form name='fileaction' action='/adm/cfile' method='post'>\\n")
     newWindow.document.write("$lt{'ente'}.<br /><br />")
     newWindow.document.write("<input type='hidden' name='filename' value='$webpath' />")
-    newWindow.document.write("<input type='hidden' name='action' value='newdir'>")
+    newWindow.document.write("<input type='hidden' name='action' value='newdir' />")
     newWindow.document.write("<input type='hidden' name='callingmode' value='testbank' />")
     newWindow.document.write("$webpath<input type='text' name='newfilename' value='' />")
     newWindow.document.write("<input type='button' value='$lt{'go'}' onClick='document.fileaction.submit();' /></form>")

--bisitz1241455565--