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

-- 
Dorothea Salo                [EMAIL PROTECTED]
Digital Repository Librarian      AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493

------------------------------------------------------------------------
-
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/marketp
lace
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

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



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

Reply via email to