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:
Tim Donohue
2012-01-24 21:20:42 +00:00
parent f9d9a4e418
commit 46c2465259

View File

@@ -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,