Thanks Claudia and Dorothea! I got it to work now.  It was the directory
structure that I was messing up on.  The imported submissions all show up
now.

Is creating the contents and dublin_core.xml files manually to upload the
documents the bestway to do mass importing?  We have a lot of documents to
import and were wondering if other  people use the same method to do the
importing.  I wonder if there's more automated way of doing the importing...

Thanks!



Claudia Jürgen wrote:
> 
> Hello,
> 
> wait STOP. Do not copy anything around in your dspace installation
> directory, it seems as if /dspace is your dspace installation directory.
> Sorry did not think of this in my prior example.
> 
> 
> To explain it a bit more verbose, for batch import as source you need a
> directory. In this directory you need 1 directory per to be imported item
> and NOTHING else.
> 
> Make a directory for import somewhere where you can play around, e.g.
> /dspaceTesting/itemimport/TestImport1
> Create a directory item1 there.
> Copy your contents, dublin_core.xml and to be imported bitstreams there,
> so the structure looks like
> /dspaceTesting/itemimport/TestImport1
> /dspaceTesting/itemimport/TestImport1/item01
> /dspaceTesting/itemimport/TestImport1/item01/contents
> /dspaceTesting/itemimport/TestImport1/item01/dublin_core.xml
> /dspaceTesting/itemimport/TestImport1/item01/foo1.pdf
> /dspaceTesting/itemimport/TestImport1/item01/foo2.pdf
> 
> foo1.pdf are just example filenames. Actually all files listed in the file
> /dspaceTesting/itemimport/TestImport1/item01/contents should be there.
> 
> run your import command with
> -s /dspaceTesting/itemimport/TestImport1
> 
> The item importer will go through
> /dspaceTesting/itemimport/TestImport1 treating each directory as an item.
> 
> Claudia
> 
> 
> 
> 
>>
>>
>> Thank you.  Now I'm getting some where.
>> So I've changed the -s part from the command from -s /dspace/batch to -s
>> /dspace/ and it generated more output.  Do the files (dublin_core.sml,
>> contents, and the actual file that's being uploaded) need to be in
>> /dspace/search and /dsapce/lib ?:
>>
>> Adding item from directory search
>>      Loading dublin core from /dspace//search/dublin_core.xml
>>
>> Adding item from directory lib
>> java.io.FileNotFoundException: /dspace/lib/dublin_core.xml (No such file
>> or
>> directory)
>>
>> java.io.FileNotFoundException: /dspace/lib/contents (No such file or
>> directory)
>>         at java.io.FileInputStream.open(Native Method)
>>
>>
>> So I've copied the files (dublin_core.sml, contents, and the actual file
>> that's being uploaded) from /dspace/search/ to /dspace/lib so they would
>> exist in both of the directories /dspace/search and /dspace/lib
>> Then I ran the command again:
>>
>> Adding item from directory search
>>         Loading dublin core from /dspace//search/dublin_core.xml
>>
>> Adding item from directory lib
>>         Loading dublin core from /dspace//lib/dublin_core.xml
>>
>>
>> Adding item from directory etc.bak-20080701-153023
>> java.io.FileNotFoundException:
>> /dspace/etc.bak-20080701-153023/dublin_core.xml (No such file or
>> directory)
>>
>> java.io.FileNotFoundException:
>> /dspace/etc.bak-20080701-153023/dublin_core.xml (No such file or
>> directory)
>>
>>
>>
>> It's looking for /dspace/etc.bak-20080701-153023/dublin_core.xml...
>>
>> Any suggestions?
>>
>>
>> Claudia Jürgen wrote:
>>>
>>> Hello,
>>>
>>> you need one directory per item and the source directory given with -s
>>> option is the directory where these item directories reside.
>>>
>>> So if the elements of the item are really straight under /dspace/run,
>>> your command should be:
>>>   /dspace/bin/dsrun org.dspace.app.itemimport.ItemImport -a -e
>>> [EMAIL PROTECTED] -c 123456789/10 -s /dspace -m /dspace/map/mapfile.txt
>>>
>>> your info differs as you say
>>> "-s /dspace/run" is your command
>>> and from the output it seems as if you used
>>> "/dspace/batch"
>>>
>>>
>>> hope that helps
>>>
>>> Claudia
>>>
>>>
>>>
>>> upload schrieb:
>>>> Hello,
>>>> I'm new to dspace and trying to upload using batch import.
>>>> When I do the batch import, there're no errors generated but when I go
>>>> to
>>>> the URL for the collection, it doesn't show any submissions.
>>>>
>>>> The command I run is:
>>>> /dspace/bin/dsrun org.dspace.app.itemimport.ItemImport -a -e
>>>> [EMAIL PROTECTED]
>>>> -c
>>>> 123456789/10 -s /dspace/run -m /dspace/map/mapfile.txt
>>>>
>>>> The contents, dublin_core.xml, and the actual document in pdf are
>>>> located
>>>> in
>>>> /dspace/run/
>>>>
>>>> Upon running the command, I get:
>>>> Destination collections:
>>>> Owning  Collection: Upload
>>>> Adding items from directory: /dspace/batch
>>>> Generating mapfile: /dspace/mapfiles/mapfile.txt
>>>>
>>>> And the mapfile.txt is empty.
>>>>
>>>> The log doesn't say much in /dspace/log/dspace.log:
>>>> 2008-08-11 15:21:03,140 INFO  org.dspace.core.ConfigurationManager @
>>>> Loading
>>>> from classloader: file:/data/dspace/config/dspace.cfg
>>>> 2008-08-11 15:21:03,152 INFO  org.dspace.core.ConfigurationManager @
>>>> Using
>>>> dspace provided log configuration (log.init.config)
>>>> 2008-08-11 15:21:03,152 INFO  org.dspace.core.ConfigurationManager @
>>>> Loading: /dspace/config/log4j.properties
>>>>
>>>> The system is Redhat 5.
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> DSpace-tech mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Dspace-1.5-cannot-batch-import-tp18947640p18948289.html
>> Sent from the DSpace - Tech mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> DSpace-tech mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dspace-1.5-cannot-batch-import-tp18947640p18950413.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to