[
https://jira.duraspace.org/browse/DS-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Masár updated DS-1579:
---------------------------
Status: More Details Needed (was: Received)
Hi Shixing,
I see a couple of problems with this issue.
1) It's clear to me that you want to define order of bitstreams based on their
name. It's not clear to me what you want to do with the primary bitstream.
Should it be shown first, before the ordered list?
2) I don't see how you would like this to be implemented. Do you imagine a
button in Edit item - Item Bitstreams that would do that for that particular
item? This seems very ineffective if you're doing batch imports of bitstreams.
You would need to do that manually for each item and that could be really
tedious.
Instead, I would suggest one of two solutions:
a) Doing this using SQL is quite straightforward - the only thing you need to
do is modify values in the sequence_id column in the bitstream table based on
ordered values of the name column for each item_id. You'd get the item_id by
doing a natural join via bitstream_id and bundle_id in the bundle2bitstream and
item2bundle tables (this sounds more complicated than it is).
However, while it's straightforward, it's not really trivial to do that in a
single SQL query - I tried that for half an hour then gave up for lack of time.
Subqueries or multiple SQL queries for each items are easy, just not very
efficient.
b) curation task - same idea as a), just implemented in form of a script. It
can use either SQL or DSpace objects. The advantage here is that using a
distributed task you would be able to specify a subtree, i.e. let it run only
on a single item, collection or community.
The curation task solution is quite universal and likely could be distributed
with DSpace.
> sort all the bitstreams in an item in the ascending or descending order by
> the file name
> ----------------------------------------------------------------------------------------
>
> Key: DS-1579
> URL: https://jira.duraspace.org/browse/DS-1579
> Project: DSpace
> Issue Type: New Feature
> Reporter: Shixing Wen
>
> In 3.x, there is a function to move bitstreams up or down within an item.
> However, it is a manual process, one at a time. We are adding lots of
> newspaper issues to items, not in a particular order at a given time,
> whenever files are available from the scanning stations.
> It would be really helpful if we can select a primary bitstream in an item
> and then be able to sort all the bitstreams there in the ascending or
> descending order by the file name.
> Could that be an enhancement for the future release?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel