Mika Stenberg a écrit :
> The problem is, that when I run the importer I now get an error
> message about the mapfile:
>
> Destination collections:
> Owning Collection: Preprints & Manuscripts
>
> java.io.FileNotFoundException: mapfile.map (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(Unknown Source)
> at java.io.FileInputStream.<init>(Unknown Source)
> at java.io.FileReader.<init>(Unknown Source)
> at
> org.dspace.app.itemimport.ItemImport.readMapFile(ItemImport.java:730)
> at
> org.dspace.app.itemimport.ItemImport.replaceItems(ItemImport.java:518)
> at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:411)
> java.io.FileNotFoundException: map1 (No such file or directory)
>
>
> Isn't Dspace suppose to create the mapfile or where does it come from?
>
> Thanks,
> -Mika
>
DSpace is suppose to create the mapfile with the details of your import
: each records correspond to an handle. For example I have this in my
"mapfile" :
dc1 123456789/236
dc2 123456789/237
....
Could you give me your complete command to import ? Do you use the OAI
Harvester Plug-in for DSpace ?
You need to specify "-m your_mapfile" (you give it the name as you want)
option at the end of your command.
I have something like this :
dsrun org.dspace.app.itemimport.ItemImport -a -e
your_e...@dspace.org -c your_collection/655 -s
your_records_repository -m your_mapfile
I hope this helps,
Mickael