[Dspace-general] problem with DSpace saving multiple-file documents out-of-order
Ranjan SinhaThakur
Ranjan.ST at dasturco.in
Tue May 5 00:33:43 EDT 2009
Dear Jurgen,
I will be helpful if you can give me the name of the file where I should
replace the following line for getting arrangement of bitstream
Ranjan
Kolkata.
Hi Christine,
if you want the bitstreams to be listed ordered by e.g. filename, you
can change:
org.dspace.content.Bundle.java (DSpace Version 1.5.1)
replace:
// Get bitstreams
TableRowIterator tri = DatabaseManager.queryTable(
ourContext, "bitstream",
"SELECT bitstream.* FROM bitstream, bundle2bitstream WHERE "
+ "bundle2bitstream.bitstream_id=bitstream.bitstream_id AND "
+ "bundle2bitstream.bundle_id= ? ",
bundleRow.getIntColumn("bundle_id"));
with
// Get bitstreams
TableRowIterator tri = DatabaseManager.queryTable(
ourContext, "bitstream",
"SELECT bitstream.* FROM bitstream, bundle2bitstream WHERE "
+ "bundle2bitstream.bitstream_id=bitstream.bitstream_id AND "
+ "bundle2bitstream.bundle_id= ? "
+ "ORDER BY bitstream.name ",
bundleRow.getIntColumn("bundle_id"));
hope that helps
Claudia Jürgen
Ranjan Sinha Thakur
Sr. Librarian
M. N. Dastur & Company (P) Ltd
P-17 Mission Row Extension
Kolkata 700013
Phone : 91-33-22255420- Ext. 519
Mob : 9433385736
Website : www.dasturco.co.in
More information about the Dspace-general
mailing list