-
Notifications
You must be signed in to change notification settings - Fork 35
Installation on Linux
Java runtime might be preinstalled on most *nix (Linux, Unix, OSX) distributions, but for this application, you need to ensure that the JDK (Java Development Kit) is installed. Also, you don't need Oracle Java, OpenJDK is fine. Below are the Ubuntu instructions (apt-get), but if you use an OS with a different package manager, you'll have to figure these steps out.
sudo apt-get install git
sudo apt-get install default-jdk
git clone git://github.com/peterdietz/SAFBuilder.git
cd SAFBuilder
./recompile.sh
./safbuilder.sh
It should return the usage syntax:
USAGE: BatchProcess /path/to/directory metadatafilename.csv
Hint -- directory: Use absolute path and no trailing slashes
Hint -- metadatafilename: needs to be in the directory, as do the content files
./safbuilder.sh /path/to/SAFBuilder/src/edu/osu/kb/sample_data AAA_batch-metadata.csv
This should then run the SAFBuilder over the included SampleData that came with this package. You can then inspect the SimpleArchiveFormat directory that was created, and that would then be suitable input for batch import to DSpace.
Here is the syntax of importing SAF Packages into DSpace using ItemImport. Basic-DSpace-Import-Process
sudo /dspace/bin/dspace import -a
-e [email protected]
-c 1811/49710
-s /home/peterdietz/Desktop/MelanieSeedsBatch/SimpleArchiveFormat/
-m /home/peterdietz/Desktop/MelanieSeedsBatch/seedsbatch1.map