The way i got around this was to amend the ItemTag.java file within
[dspace-src]/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag.

I declared a private string variable named sLongLink and then altered the
within the render method as follows...



                        if (isLink)
                        {
                            //check to see if link is over 70 chars, if so 
shorten it for display
purposes
                            sLongLink = Utils.addEntities(values[j].value);
                            if (sLongLink.length() > 70)
                            {
                                sLongLink = sLongLink.substring(0, 67);
                                sLongLink = sLongLink + "...";                  
                
                            }
                            
                                out.print("<a href=\"" + 
values[j].value +
"\">"
                                    + sLongLink + " ");
                                                            
                        }


--
View this message in context: 
http://dspace.2283337.n4.nabble.com/webui-itemdisplay-limit-characters-in-displayed-link-tp3795589p3798795.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to