mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user