ScottPhillips: Fixes a problem where community and collection logos do not appear.

git-svn-id: http://scm.dspace.org/svn/repo/trunk@2965 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Scott Phillips
2008-06-24 20:58:54 +00:00
parent 2f3b41e795
commit 7858eb3bf1

View File

@@ -301,13 +301,18 @@ public class BitstreamReader extends AbstractReader implements Recyclable
this.bitstreamName = bitstream.getName();
// Trim any path information from the bitstream
if (bitstreamName != null)
{
int finalSlashIndex = bitstreamName.lastIndexOf("/");
if (finalSlashIndex > 0)
{
bitstreamName = bitstreamName.substring(finalSlashIndex+1);
}
if (bitstreamName != null && bitstreamName.length() >0 )
{
int finalSlashIndex = bitstreamName.lastIndexOf("/");
if (finalSlashIndex > 0)
{
bitstreamName = bitstreamName.substring(finalSlashIndex+1);
}
}
else
{
// In-case there is no bitstream name...
bitstreamName = "bitstream";
}