mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
Fixing change caused by r5665, which dropped getProperty with default.
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5668 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -103,8 +103,18 @@ public class Bundle extends DSpaceObject
|
|||||||
ourContext = context;
|
ourContext = context;
|
||||||
bundleRow = row;
|
bundleRow = row;
|
||||||
bitstreams = new ArrayList<Bitstream>();
|
bitstreams = new ArrayList<Bitstream>();
|
||||||
String bitstreamOrderingField = ConfigurationManager.getProperty("webui.bitstream.order.field", "sequence_id");
|
String bitstreamOrderingField = ConfigurationManager.getProperty("webui.bitstream.order.field");
|
||||||
String bitstreamOrderingDirection = ConfigurationManager.getProperty("webui.bitstream.order.direction", "ASC");
|
String bitstreamOrderingDirection = ConfigurationManager.getProperty("webui.bitstream.order.direction");
|
||||||
|
|
||||||
|
if (bitstreamOrderingField == null)
|
||||||
|
{
|
||||||
|
bitstreamOrderingField = "sequence_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bitstreamOrderingDirection == null)
|
||||||
|
{
|
||||||
|
bitstreamOrderingDirection = "ASC";
|
||||||
|
}
|
||||||
|
|
||||||
StringBuilder query = new StringBuilder();
|
StringBuilder query = new StringBuilder();
|
||||||
query.append("SELECT bitstream.* FROM bitstream, bundle2bitstream WHERE");
|
query.append("SELECT bitstream.* FROM bitstream, bundle2bitstream WHERE");
|
||||||
|
Reference in New Issue
Block a user