...
The SAFBuilder project reside on GitHub. Check out the source code, recompile it, and run it. Using this application will probably require that you have already downloaded and installed Java's JDK. It is possible to run the SAFBuilder from Windows, however the commands to do so are not detailed here.
From the terminal (Linux / OSX):
Code Block |
---|
git clone git://github.com/peterdietz/SAFBuilder.git cd SAFBuilder ./recompilesafbuilder.sh |
The ./safbuilder.sh
...
command with no arguments will show the help screen.
Panel |
---|
Recompiling SAFBuilder, just a moment... usage: SAFBuilder -c,--csv <arg> Filename with path of the CSV spreadsheet. This must be in the same directory as the content files -h,--help Display the Help -m,--manifest Initialize a spreadsheet, a manifest listing all of the files in the directory, you must specify a CSV for -c -z,--zip (optional) ZIP the output |
The final command will then give you the arguments used to invoke the program.
Panel |
---|
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 |
There is sample data included with the tool to give an idea of how to use this.
...
Code Block |
---|
./safbuilder.sh -c /pathhome/todspace/SAFBuilder/src/edu/osu/kb/sample_data /AAA_batch-metadata.csv |
This creates the SimpleArchiveFormat directory inside of the directory specified, along with subdirectories, content files, metadata files that is ready to import into DSpace.
...
Code Block |
---|
sudo /dspace/bin/dspace import -a -e dietzpeter@longsight.72@osu.educom -c 1811/49710 -s /home/dspace/peterdietzSAFBuilder/Desktopsrc/MelanieSeedsBatchsample_data/SimpleArchiveFormat/ -m /home/dspace/peterdietzSAFBuilder/Desktopsrc/MelanieSeedsBatchsample_data/seedsbatch1batch1.map |
Further Work
This packager works as a stand-alone tool, and requires knowledge of Java to be able to run. Thus satisfying the initial need to be able to package many items to be batch loaded into DSpace, using DSpace's launcher item-import. So the remaining goal of this project is to streamline the process of batch loading materials into DSpace.
...