[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 17 Jun 2005 21:17:11 -0000
albertel Fri Jun 17 17:17:11 2005 EDT
Modified files:
/loncom/interface lonnavmaps.pm
Log:
- spcifying alts for need parts like folder opening anclosing (BUG#4137)
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.328 loncom/interface/lonnavmaps.pm:1.329
--- loncom/interface/lonnavmaps.pm:1.328 Tue May 31 22:02:41 2005
+++ loncom/interface/lonnavmaps.pm Fri Jun 17 17:17:09 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.328 2005/06/01 02:02:41 www Exp $
+# $Id: lonnavmaps.pm,v 1.329 2005/06/17 21:17:09 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1039,7 +1039,7 @@
my $location=&Apache::loncommon::lonhttpdurl("/adm/lonIcons");
# If this is a new branch, label it so
if ($params->{'isNewBranch'}) {
- $newBranchText = "<img src='$location/branch.gif' border='0' />";
+ $newBranchText = "<img src='$location/branch.gif' border='0' alt='Branch' />";
}
# links to open and close the folder
@@ -1051,16 +1051,16 @@
my $linkclose = "</a>";
# Default icon: unknown page
- my $icon = "<img src='$location/unknown.gif' alt='' border='0' />";
+ my $icon = "<img src='$location/unknown.gif' alt='' border='0' alt=' ' ' />";
if ($resource->is_problem()) {
if ($part eq '0' || $params->{'condensed'}) {
- $icon ='<img src="'.$location.'/problem.gif" alt="" border="0" />';
+ $icon ='<img src="'.$location.'/problem.gif" alt=" " border="0" />';
} else {
$icon = $params->{'indentString'};
}
} else {
- $icon = "<img src='".&Apache::loncommon::icon($resource->src)."' alt='' border='0' />";
+ $icon = "<img src='".&Apache::loncommon::icon($resource->src)."' alt=' ' border='0' />";
}
# Display the correct map icon to open or shut map
@@ -1075,7 +1075,8 @@
if (!$params->{'resource_no_folder_link'}) {
$icon = "navmap.$folderType." . ($nowOpen ? 'closed' : 'open') . '.gif';
- $icon = "<img src='$location/$icon' alt='' border='0' />";
+ $icon = "<img src='$location/$icon' alt='".
+ ($nowOpen ? 'Open Folder' : 'Close Folder')."' border='0' />";
$linkopen = "<a href='" . $params->{'url'} . '?' .
$params->{'queryString'} . '&filter=';
@@ -1093,7 +1094,8 @@
# Don't allow users to manipulate folder
$icon = "navmap.$folderType." . ($nowOpen ? 'closed' : 'open') .
'.nomanip.gif';
- $icon = "<img src='$location/$icon' alt='' border='0' />";
+ $icon = "<img src='$location/$icon' alt='".
+ ($nowOpen ? 'Open Folder' : 'Close Folder')."' border='0' />";
$linkopen = "";
$linkclose = "";
@@ -1650,7 +1652,7 @@
$args->{'condensed'} = 0;
my $location=
&Apache::loncommon::lonhttpdurl("/adm/lonIcons/whitespace1.gif");
- $args->{'indentString'} = setDefault($args->{'indentString'}, "<img src='$location' width='25' height='1' alt='' border='0' />");
+ $args->{'indentString'} = setDefault($args->{'indentString'}, "<img src='$location' width='25' height='1' alt=' ' border='0' />");
$args->{'displayedHereMarker'} = 0;
# If we're suppressing empty sequences, look for them here. Use DFS for speed,