Hi all,
I tried to import metadata containing more then 1 file and using more
then 1 metatdata schema. As far as I see in the code of ItemImport.java
this should be possible. But I encounter the an error whent I try to do
the import:
$ ./import -a -e [EMAIL PROTECTED] -c 123456789/4 -s /tmp/dc -m
080627.map --test
**Test Run** - not actually importing items.
Destination collections:
Owning Collection: Osnabrücker E-Dissertationen
Adding items from directory: /tmp/dc
Generating mapfile: 080627.map
java.lang.NullPointerException
at
org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:506)
at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:421)
java.lang.NullPointerException
***End of Test Run***
Here is the data I work with:
The content of /tmp/dc is only 1 directory named dc0. dc0 contains:
contents
dublin_core.xml
E-Diss6_hepp.tar.gz
E-Diss6_hepp.tar.gz.sha2
E-Diss6_Int_Hepp.pdf
E-Diss6_Int_Hepp.pdf.sha2
license_text
metadata_dct.xml
metadata_marc.xml
metadata_uos.xml
metadata_vCard.xml
The content of dublin_core.xml is
<?xml version="1.0"?>
<dublin_core schema="dc">
<dcvalue element="creator" qualifier="">Hepp, Alexander</dcvalue>
<dcvalue element="identifier" qualifier="">6</dcvalue>
<dcvalue element="title" qualifier="">Isolobale Substitution in
Tetraphosphortrisulfid und in seinen Derivaten</dcvalue>
<dcvalue element="type" qualifier="">diss</dcvalue>
</dublin_core>
And metadata_marc.xml, as an example for the other schemas:
<?xml version="1.0"?>
<dublin_core schema="marc">
<dcvalue element="edt" qualifier="">fangmeier</dcvalue>
<dcvalue element="rev" qualifier="">Prof. Dr. Roger Blachnik; Dr. habil.
Konstantin Karaghiosoff</dcvalue>
<dcvalue element="ths" qualifier="">Prof. Dr. Roger Blachnik</dcvalue>
</dublin_core>
The file 'license_text' is empty and 'contents' contains just the
filenames of the 4 files of the bundle.
What did I wrong?
Greetings
Robert
--
===================================
Robert Roggenbuck
Universitaetsbibliothek Osnabrueck
Germany
===================================
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech