I happen to be running a replacement import right now. Here's the command I use:
dsrun org.dspace.app.itemimport.ItemImport --replace [EMAIL PROTECTED] --collection=1721.1/123 --source=archive1 --mapfile=archive1.map archive1 is a directory containing another directory named something like 0051. archive1.map then contains a line with that subdirectory and the item handle. 0051 1721.1/37278 If you're replacing several things, there could be several directories under archive1 and then several lines in the map file. I wasn't able to access Dorothea's website to look at her instructions. Christine On Thu, 2008-01-10 at 16:46 +0000, Robin Taylor wrote: > Just had a quick look at the code, can't see an "id" option. There is a > "collection" option which I think can be the handle. > > Cheers, Robin. > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Blanco, Jose > Sent: 10 January 2008 16:29 > To: Dorothea Salo; [email protected] > Subject: Re: [Dspace-tech] Uploading a 10Gig File. (Blanco, Jose) > > Dorothea: > > I followed your instructions, and they make sense. This is the command I'm > using to replace the item. Can you tell me what's wrong with it? > > -bash-3.00$ ./dsrun org.dspace.app.itemimport.ItemImport --replace > [EMAIL PROTECTED] --id=2027.42/40243 > --source=/l1/dspace/repository/dev/archive/1 -m mapfile_item_1 Exception in > thread "main" > org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: > --id > at org.apache.commons.cli.Parser.processOption(Parser.java:253) > at org.apache.commons.cli.Parser.parse(Parser.java:170) > at org.apache.commons.cli.Parser.parse(Parser.java:114) > at > org.dspace.app.itemimport.ItemImport.main(ItemImport.java:167) > > The id is the handle of the collection. > The source is the dir containing the metadata And the mapfile is the mapfile > as you described it in your documentation. > > Many thanks! > > Jose > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dorothea > Salo > Sent: Thursday, January 10, 2008 9:53 AM > To: [email protected] > Subject: Re: [Dspace-tech] Uploading a 10Gig File. (Blanco, Jose) > > On Jan 10, 2008 8:37 AM, Blanco, Jose <[EMAIL PROTECTED]> wrote: > > The things is I want to add the file to a record that has already been > > > imported. I tried to export the item then replace it, but the replace > > failed, does ItemImport do item replacement? The documentation talks > > about collection replacement, so I thought maybe I could just try an > > item, but it did not work. > > You CAN export and replace an item, though it's not exactly a > straightforward process. I just happened to write a blog post about the > process the other day: > <http://cavlec.yarinareth.net/archives/2008/01/08/batch-replacing-items- > in-dspace/>. > You don't have to export the entire collection; DSpace can export and > reimport single items just fine. > > If the process breaks down for you, post back and I'll see if I can help. > > Dorothea > -- Christine Moulen Library Systems Manager MIT Libraries, E25-131 617-253-0757 fax: 617-253-4462 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

