4Science / DSpace

This repository contains the 4Science optimized DSpace & DSpace-CRIS distribution.
https://wiki.lyrasis.org/display/DSPACECRIS/
BSD 3-Clause "New" or "Revised" License
42 stars 61 forks source link

Bitstreams listed in the advancedattachment CRIS Layout option are not sorted correctly #419

Open olli-gold opened 7 months ago

olli-gold commented 7 months ago

Describe the bug If an item has multiple bitstreams attached, the order of those is not reflected correctly on the item page. For instance: https://tore.tuhh.de/entities/product/bc007281-3425-4d41-82f7-c8bbd4a47dcc - On that item you clearly see, that the files should be in sort order and in the database the sort order is stored correctly. But the showableByItem call does not return the files in the correct sort order and I do not see a parameter allowing me to fix that... https://tore.tuhh.de/dspace-cris-server/api/core/bitstreams/search/showableByItem?uuid=bc007281-3425-4d41-82f7-c8bbd4a47dcc&name=ORIGINAL&filterMetadata=dc.title

To Reproduce Steps to reproduce the behavior:

Expected behavior I would like to see the files in the correct order, according to the sort order stored in the database (bundle2bitstream.bitstream_order).

Related work Nothing I am aware of.