Hi, some notes about this topic  ;-)
I had this need in a project when we wanted to give an author the possibility to attach a file after the item was published... First I created a special collection where the submission form only consists of file uploading. After license acceptance and workflow completed, the item with only bitstream(s) is deleted and the bitstream moved to the original item. If the original item had no bitstreams it's ok, but if the original item already had at least one bitstream the handle servlet can't retrieve the correct bitstream because the sequence_id number is wrong (there are two bitstreams with sequence_id = 1 and so on). I've solved with a preliminary check and a sequence_id sanitize (myMergeBitstream.setSequenceId(myMergeBitstream.getSequenceId()+maxSequenceIdInOriginalItem))

Best,
Andrea Bollini

Larry Stone ha scritto:
I'm wondering if I could assign the same bitstream to various items.

It is theoretically possible in the data model -- a Bitstream object can
belong to more than one Bundle (and the Bundle is in turn part of an
Item).  The code looks like it should even support that, i.e. if you
delete one of the Items, the shared Bitstream wouldn't be deleted so long
as another Item includes it.

In practice, I don't know of any way to "map" a Bitstream into another
Item.  The way to do that, in Java, is for the recipient Item to
take its "ORIGINAL" bundle and call the addBitstream(bitstream) method
on the target bitstream that it found in another Item.  You'd have
to extend the UI to do this but it ought to be possible in JSPs.

    -- Larry


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to