DL link changes not styled correctly

Bug #244884 reported by Richard H.
2
Affects Status Importance Assigned to Milestone
Document Library
New
Undecided
Unassigned

Bug Description

Back when the links were amended to reflect the filename extension (rather than just say 'original'), there were other impacts to this change that weren't considered. One such example is the html markup applied to the DL links on a Silva page.

What we currently have is:

<a class="file-url"
       href="http://documents.beds.ac.uk/dl/uob/handle/8274295181270951950/uob-installing-configuring-new-silva.doc">doc</a>

...but the class in the first example should have been changed to 'doc' to reflect the filename, e.g.

<a class="doc-url"
       href="http://documents.beds.ac.uk/dl/uob/handle/8274295181270951950/uob-installing-configuring-new-silva.doc">doc</a>

Now, this is presumably relatively straight-forward change when the users are restricting the DL to a small, limited number of allowable file types (e.g. doc,pdf,xls,ppt,pps,txt) but what happens if the DL is used for a wider range? Would you have to include a class for every conceivable file-type just-in-case?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.