You specify the --collection flag as part of ItemImport.

dsrun org.dspace.app.itemimport.ItemImport --replace
[EMAIL PROTECTED] --collection=1721.1/7704 --source=12345
--mapfile=12345.map

The map file looks like this:
0000 1721.1/8092

It finds the old one based on the handle in the map file, removes that
item completely, and imports the item to the new collection from
--collection

The moved item will have the same handle as the original.

You'll still need to do your ItemExport to get the source metadata and
bitstream files.  The whole thing is replaced from the source.

Christine

On Wed, 2007-08-08 at 09:30 -0400, Blanco, Jose wrote:
> But doesn't the replace just replace the item in the collection it
> exists in.  I need to move the item from one collection to another.
> Where would I indicate that?  Where would I say this item now lives in
> this collection, and not in this other one?
> 
> Thanks!
> Jose 
> 
> -----Original Message-----
> From: Christine L Moulen [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 08, 2007 9:15 AM
> To: Blanco, Jose
> Cc: [email protected]
> Subject: Re: [Dspace-tech] Moving an item from one collection to another
> 
> Jose,
> 
> If you're using ItemImport, you could run that with the --replace flag,
> instead of --add.  
> Be sure to provide a map file which contains the handle for the item
> you're moving, similar to the map file the --add option would have
> created.  
> You can skip deleting the item, the replacement will take care of it.
> You also shouldn't need to re-index.
> 
> Christine
> 
> On Tue, 2007-08-07 at 12:35 -0400, Blanco, Jose wrote:
> > I need to move an item from one collection to another.  I tried ( in 
> > my dev area ) to use ItemExport to get the item, and then I deleted 
> > the item using the interface, then I used ItemImport to put the item 
> > in the new collection, but when I log in as admin to view the item it 
> > seems to have created a different item_id and I can't edit the item.  
> > I don't have confidence in this procedure.  Is there a better way to
> do this?
> > 
> > Thanks!
> > Jose
> > 
> > ----------------------------------------------------------------------
> > --- This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/ 
> > _______________________________________________
> > DSpace-tech mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> --
> Christine Moulen
> Library Systems Manager
> MIT Libraries, E25-131
> 617-253-0757
> fax: 617-253-4462

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to