mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Fix for DS-1108 : AIP Backup & Restore doesn't restore a Bitstream's "Sequence ID".
This adds the three lines of code necessary to restore a Bitstream's Sequence ID from an Item AIP (Sequence ID was already being stored in an Item AIP). git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6924 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -792,6 +792,11 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
|
||||
Bitstream bitstream = bundle.createBitstream(fileStream);
|
||||
bitstream.setName(path);
|
||||
|
||||
// Set bitstream sequence id, if known
|
||||
String seqID = mfile.getAttributeValue("SEQ");
|
||||
if(seqID!=null && !seqID.isEmpty())
|
||||
bitstream.setSequenceID(Integer.parseInt(seqID));
|
||||
|
||||
// crosswalk this bitstream's administrative metadata located in
|
||||
// METS manifest (or referenced externally)
|
||||
manifest.crosswalkBitstream(context, params, bitstream, mfileID,
|
||||
|
Reference in New Issue
Block a user