Many thanks, Claudia. That worked as predicted.

I have lurked been on the various Dspace lists and groups for 10 years and have 
noticed that you seem to be among the most helpful in the community. Thanks 
again.

I am happy to update the Dspace wiki or other community documents if this is 
not elaborated somewhere. If I missed it, please tell me but the document I was 
working from did not mention the requirement to have the Dublin_core.xml and 
the contents files. 

-Alvin
-----Original Message-----
From: [email protected] <[email protected]> On 
Behalf Of Claudia Jürgen
Sent: Friday, May 18, 2018 4:04 AM
To: [email protected]
Subject: Re: [dspace-community] Use of Item Update Syntax

Hello Alvin,

in the case of itemupdate the
-i is the metadatafield in which the identifier is located in the 
dublin_core.xml the default is dc.identifier.uri

You need basically the Simple Archive Structure
* Source
** item01
*** dublin_core.xml
*** contents
*** YourFile.foo

The dublin_core.xml might just contain the dc.identifier.uri, e.g:

<?xml version="1.0" encoding="UTF-8"?>
<dublin_core schema="dc">
   <dcvalue element="identifier"
qualifier="uri">YourIdentiferURIOfTheItem</dcvalue>
</dublin_core>

The contents just:
YourFile.foo
Will be added automatically to the bundle ORIGINAL

The command would be

[dspace]/bin/dspace itemupdate -e [userEmail] -s /pathtotheSourceDirectory -A


Hope this helps

Claudia Jürgen

Am 17.05.2018 um 21:13 schrieb Hutchinson, Alvin:
> Hello.
>
> We are using Dspace version 5 and I am trying to add a rather large (> 20GB) 
> bitstream to an existing item.
>
> The webui fails due to time-out and other problems so I thought I 
> would use the command line as described here: 
> https://wiki.duraspace.org/display/DSDOC5x/Updating+Items+via+Simple+A
> rchive+Format
>
>
> However, when I run this command:
>
> [dspace]/bin/dspace itemupdate -e [userEmail] -s [location of the file 
> to upload] -A -i [identifier for the item in the repository]
>
>
> I get the following response:
>
> Add bitstreams
> Actions to be performed:
>      org.dspace.app.itemupdate.AddBitstreamsAction
> ItemUpdate - initializing run on Thu May 17 15:08:19 EDT 2018
>
> Done processing.  Successful items: 0 of 0 items in source archive
>
> End.
>
>
> Does anyone know whether the location of the file to upload (identified by 
> the –s switch) requires a Dublin_core.xml file and/or a contents file to be 
> present as well as the bitstream itself?
>
> I am not altering the metadata but simply adding a file to the item.
>
> Any other tips on using itemupdate from the command line for adding a single 
> file?
>
> Thanks in advance
>
> Alvin
>
>
> Alvin Hutchinson
> Smithsonian Libraries
> 202.633.1031
> Have you seen Smithsonian Profiles<https://profiles.si.edu/>?
>
>

--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
[email protected]
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist 
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese 
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform 
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen 
Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is 
solely intended for the recipient. If you are not the intended recipient of 
this e-mail please contact the sender and delete this message. Thank you. 
Without prejudice of e-mail correspondence, our statements are only legally 
binding when they are made in the conventional written form (with personal 
signature) or when such documents are sent by fax.

--
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to