click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-15306
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Adam Marshall
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sakai

Incorrect icons displayed for some filetypes when filetype in in upper case

Created: 06-Jan-2009 10:14   Updated: 27-Nov-2009 01:19
Component/s: Access, Resources
Affects Version/s: 2.5.3
Fix Version/s: 2.7.0

Time Tracking:
Not Specified

Issue Links:
Relate
 

2.6.x Status: None
2.5.x Status: None
2.4.x Status: None


 Description  « Hide
In the access servlet view a file of type .jpg has a nice little 'Jpeg' icon next to it; files of type .JPG do not have this icon. A suggestion would be to ignore the case of the extension when deciding what icon to display

related to: http://bugs.sakaiproject.org/jira/browse/SAK-13694

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Matthew Buckett added a comment - 06-Jan-2009 13:28
I don't think you can do case insensitive matches in CSS attribute selectors, we either duplicate the selectors for uppercase versions although this still wouldn't catch Myfile.Jpg, but I think this is acceptable failure.33

Cleanest way would probably be to get the java code to add an extra class to the <a> (eg <a href="somefile.JPG" class="type-jpg">somefile.JPG</a>) and then use the CSS attribute selector of:

a[class|="type-jpg"] {

but maybe this is overkill.

Ian Boston added a comment - 29-Jan-2009 02:28
I am unassigning this issue as it gives the wrong impression. I dont have enough hours in the day to look at this issue at the moment and keeping it assigned to me give the reporter hope that I might be able to look at it. I am very sorry. If this issue is a real blocker for production then I would suggest you look for resource in the community to fix the problem, I am happy to respond to emails and guide. Where the code base is Rwiki or Search, I have absolutely no problem with someone else working on the code, this after all is a community.

Stephen Marquard added a comment - 27-Nov-2009 01:19
Fixed by javascript in the kernel/1.1 trunk version.