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:
Peter Dietz
2010-10-27 03:46:42 +00:00
parent 286f901c9c
commit d6559fd4bc

View File

@@ -103,8 +103,18 @@ public class Bundle extends DSpaceObject
ourContext = context;
bundleRow = row;
bitstreams = new ArrayList<Bitstream>();
String bitstreamOrderingField = ConfigurationManager.getProperty("webui.bitstream.order.field", "sequence_id");
String bitstreamOrderingDirection = ConfigurationManager.getProperty("webui.bitstream.order.direction", "ASC");
String bitstreamOrderingField = ConfigurationManager.getProperty("webui.bitstream.order.field");
String bitstreamOrderingDirection = ConfigurationManager.getProperty("webui.bitstream.order.direction");
if (bitstreamOrderingField == null)
{
bitstreamOrderingField = "sequence_id";
}
if (bitstreamOrderingDirection == null)
{
bitstreamOrderingDirection = "ASC";
}
StringBuilder query = new StringBuilder();
query.append("SELECT bitstream.* FROM bitstream, bundle2bitstream WHERE");