Batch importing The basic concept behind the DSpace simple archive format is to create an archive, which is directory full of items, with a subdirectory per item. Each item directory contains a file for the item's descriptive metadata, the files that make up the item and a "contents" textfile listing the items to be imported.
archive_directory/ item_000/ dublin_core.xml contents file_1 file_2 item_001/ dublin_core.xml contents file_1 etc...
The dublin_core.xml file has the following format, where each Dublin Core element has its own entry within a tagset. A full list of the Dublin Core elements available in DSpace can be found in “Dspace-dc-overview.pdf” (http://www.pdfcoke.com/doc/15284184/Dspace-Dublin-Core-elementsOverview). There are currently three tag elements available in the tagset:
• • •
<element> - the Dublin Core element - the element's qualifier - (optional)ISO language code for element
Example: Stereoscopic Photographs of the Franklin Relics, No. 2 Cheyne, John Powles 2008 1861 Lefoy, Jessie, bequest, 1941 print, cardboard sailing ships equipment
The Importing command :\\bin>dsrun org.dspace.app.itemimport.ItemImport -h Using DSpace installation in: :\ usage: ItemImport
-t,--test -R,--resume -a,--add
test run - do not actually import items resume a failed import (add only) add items to DSpace
-c,--collection
destination collection(s) Handle or database ID
-d,--delete
delete items listed in mapfile
-e,--eperson -h,--help
email of eperson doing importing help
-m,--mapfile
mapfile items in mapfile
-p,--template
apply template
-r,--replace
replace items in mapfile
-s,--source
source of items (directory)
-w,--workflow
adding items:
send submission through collection's workflow
ItemImport -a -e eperson -c collection -s sourcedir -m mapfile
replacing items: ItemImport -r -e eperson -c collection -s sourcedir -m mapfile deleting items: ItemImport -d -e eperson -m mapfile If multiple collections are specified, the first collection will be the one that owns the item.
The network batch transfer system It is possible to transfer the batch data to the repository over the network. This secure service uses the SFTP protocol, for which native clients exist in Linux and Mac OS X, as well as many free clients for Windows, like WinSCP.