Hi Nick,

Your question is a bit unclear. Are you trying to order *bundles* within an
Item?  Or are you trying to order *bitstreams* in a Bundle?

If the former: Bundles are unordered by default because they are usually
referenced *by name*.  So, when a Bundle is accessed, it tends to be loaded
via this method (which selects them by name):
https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/content/ItemServiceImpl.java#L285
 If you actually wanted to change the order in which they are listed, you'd
likely need to change the Hibernate relationship between Bundle & Item here
(perhaps by adding an @OrderBy annotation, though I've not tried that
myself):
https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/content/Bundle.java#L53


If you wanted to reorder Bitstreams in a Bundle, that is already possible.
You can achieve this from either the XMLUI or JSPUI in the Edit Item menus.
For example, in the XMLUI, if you go to the "Item Bitstreams" tab, you'll
see a list of all Bitstreams (within all Bundles) and you can reorder them
by moving bitstreams up/down in the list.  This ordering is stored in the
"bitstream_order" field of the "bundle2bitstream" table, and is referenced
by Hibernate here:
https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/content/Bundle.java#L50


Hopefully that helps, but if it doesn't let us know on this mailing list.
If I misunderstood, please give us more information about your use
case/need, and hopefully someone on this list can help.

Tim


On Mon, Nov 19, 2018 at 11:44 AM Nick Lauland <[email protected]> wrote:

> Hey all,
>
> Here at the Texas Digital Library we have some custom code for video/media
> files.
>
> Its a bit of a kludge and only looks in the first non-text Bundle with for
> media files...
>
> ...in DSpace 6 it looks in the THUMBNAIL and not the ORIGINAL bundle.
>
> Is there a way to reorder Bitstream Bundles?
> (Other than re-importing everything in some tricky way...maybe?)
>
> Thanks for any hints!
>
>
> Nick Lauland
> Texas Digital Library
> www.tdl.org
>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to