Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

 

Parameters

ParameterNote
usernameThe username to use when logging into tDAR
passwordThe password
hostThe server to use
configA properties file to use specify a username, password, etc, instead of passing them through as commandline parameters
filea list of files or directories that should be used to upload
projectidUse this to override the project ID for all uploaded files

 

Setting up the directory structure

Structure 1, a directory with multiple record files (no attachments)

/tmp/separateRecords/record1.xml

/tmp/separateRecords/record2.xml
What happens – each file is uploaded separately as a record into tDAR. If there are other files that are not XML records, they are ignored
Structure 2, a directory with a single record file and one or more attachments

/tmp/singleRecord/record1.xml

/tmp/singleRecord/img1.jpg
/tmp/singleRecord/img2.jpg
What happens – record1 is uploaded and img1 and img2 are uploaded and associated with it
Structure 3, a degenerate case

/tmp/bad/record1.xml

/tmp/bad/img1.jpg
/tmp/bad/record2.xml
What happens – record1 and record2 are uploaded, the image is ignored as the API Tool doesn't know what to do with it
  • No labels