Hi 

please check what we have done bellow and correct us where we have done errors. 
I don't understand mapfile really i just named mine mapfile2, if maybe is the 
one causing errors please advice on that as well. 

regards 
Lewatle


dsp...@dspace-desktop:/usr/local/dspacesrc/dspace/bin$ ./import -a -e 
[email protected] -c 123456789/3 -s /home/dspace/Digital_System -m 
mapfile2

Destination collections:

Owning  Collection: test1

Adding items from directory: /home/dspace/Digital_System

Generating mapfile: mapfile2

Adding item from directory 1

        Loading dublin core from /home/dspace/Digital_System/1/dublin_core.xml

        Schema: dc Element: contributor Qualifier: author Value: Roberts, Charl

        Schema: dc Element: date Qualifier: accessioned Value: 
2009-07-21T14:56:39Z

        Schema: dc Element: date Qualifier: available Value: 
2009-07-21T14:56:39Z

        Schema: dc Element: date Qualifier: issued Value: 2009-07-21T14:56:39Z

        Schema: dc Element: identifier Qualifier: uri Value: 
http://hdl.handle.net/123456789/4

        Schema: dc Element: description Qualifier: abstract Value: test

        Schema: dc Element: description Qualifier: provenance Value: Submitted 
by Lewatle Phaladi ([email protected]) on 2009-07-21T14:56:39Z

No. of bitstreams: 1

HWS-53.pdf: 871245 bytes, checksum: 0270f09f42cb4ffa2b1bfb86e5edf8bf (MD5)

        Schema: dc Element: description Qualifier: provenance Value: Made 
available in DSpace on 2009-07-21T14:56:39Z (GMT). No. of bitstreams: 1

HWS-53.pdf: 871245 bytes, checksum: 0270f09f42cb4ffa2b1bfb86e5edf8bf (MD5)

        Schema: dc Element: language Qualifier: iso Value: en

        Schema: dc Element: subject Qualifier: none Value: test

        Schema: dc Element: title Qualifier: none Value: test

        Schema: dc Element: type Qualifier: none Value: Article

        Processing contents file: /home/dspace/Digital_System/1/contents

        Bitstream: HWS-53.pdf   Bundle: ORIGINAL

java.io.IOException: No such file or directory

        at java.io.UnixFileSystem.createFileExclusively(Native Method)

        at java.io.File.createNewFile(File.java:883)

        at edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)

        at 
org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageManager.java:332)

        at org.dspace.content.Bitstream.create(Bitstream.java:194)

        at org.dspace.content.Bundle.createBitstream(Bundle.java:390)

        at 
org.dspace.app.itemimport.ItemImport.processContentFileEntry(ItemImport.java:1207)

        at 
org.dspace.app.itemimport.ItemImport.processContentsFile(ItemImport.java:1110)

        at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:648)

        at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:514)

        at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:421)

java.io.IOException: No such file or directory

 

 

























-----Original Message-----
From: Claudia Jürgen [mailto:[email protected]]
Sent: Wed 7/22/2009 3:00 PM
To: Lewatle Phaladi
Cc: [email protected]
Subject: Re: [Dspace-tech] Import Into Dspace
 
Hello Lewatle,

check the source directory:
--source /home/dspace/Digital_System/2

This directory should point to the import directory which should contain 
1 directory per item.
I assume /home/dspace/Digital_System/2 is the directory of a single 
item, i.e. the directory where dublin_core.xml, contents, etc can be 
found. If this is the case, just use -s /home/dspace/Digital_System

The importer looks at the source directory given and treats each 
directory within the source directory as an item. If you 
/home/dspace/Digital_System/2 does not contain any valid item directory 
the importer will just run without importing anything and giving on error.

Hope that helps

Claudia Jürgen

Lewatle Phaladi schrieb:
> Hi
> 
> we are importing file into dspace and the command execute fine with
> no error like i copied it bellow, the thing is i dont know how to i
> see my imported file or the results.
> 
> Regards
> 
> Lewatle
> 
> 
> 
> 
> dsp...@dspace-desktop:/usr/local/dspacesrc/dspace/bin$ ./import --add
> [email protected] --collection=123456789/3
> --source=/home/dspace/Digital_System/2 -m mapfile1
> 
> Destination collections:
> 
> Owning  Collection: test1
> 
> Adding items from directory: /home/dspace/Digital_System/2
> 
> Generating mapfile: mapfile1
> 
> <html><p><font face = "verdana" size = "0.8" color = "navy">This
> communication is intended for the addressee only. It is confidential.
> If you have received this communication in error, please notify us
> immediately and destroy the original message. You may not copy or
> disseminate this communication without the permission of the
> University. Only authorized signatories are competent to enter into
> agreements on behalf of the University and recipients are thus
> advised that the content of this message may not be legally binding
> on the University and may contain the personal views and opinions of
> the author, which are not necessarily the views and opinions of The
> University of the Witwatersrand, Johannesburg. All agreements between
> the University and outsiders are subject to South African Law unless
> the University agrees in writing to the contrary.</font></p></html>
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________ DSpace-tech mailing
> list [email protected] 
> https://lists.sourceforge.net/lists/listinfo/dspace-tech


<html><p><font face = "verdana" size = "0.8" color = "navy">This communication 
is intended for the addressee only. It is confidential. If you have received 
this communication in error, please notify us immediately and destroy the 
original message. You may not copy or disseminate this communication without 
the permission of the University. Only authorized signatories are competent to 
enter into agreements on behalf of the University and recipients are thus 
advised that the content of this message may not be legally binding on the 
University and may contain the personal views and opinions of the author, which 
are not necessarily the views and opinions of The University of the 
Witwatersrand, Johannesburg. All agreements between the University and 
outsiders are subject to South African Law unless the University agrees in 
writing to the contrary.</font></p></html>
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to