...
Required Packages :
Source file :
AddDatastreamActor.py
Input port:
- injest_info : ObjectToken containing a Jython dictionary containing data from a form usbmitted via "FCRepo Datastream Dialog". Alternately, any Jython dictionary with the following keys:
- fcrepoURL = base URL of the Fedora Repository.
- username = name of a Fedora Repository user.
- password = password corresponding to the username.
- pid = identifier for object to be queried.
- dsid = identifier of datastream to be queried.
- dsLabel = label for datastream to be created.
- dsLocation = URL of file containing datastream content.
- mimeType = mime type of datastream content.
- controlGroup = datastream control group, optional, defaults to 'M'.
- dsState = datastream state, optional, defaults to 'A'.
- versionable = whether datastream is versionable, optional, defaults to True.
- formatURI = URI of datastream format description, optional, no default.
- checksumType = datastream checksum type, optional, no default.
- altIDs = list of alternate IDs for datastream, optional, no default.
...
Source file :
IngestDialogActor.py
Input ports :
Output port :
...
Required Packages :
Source file :
ObjectCreateActor.py
Input port:
- injest_info : ObjectToken containing a Jython dictionary containing data from a form usbmitted via "FCRepo Ingest Dialog". Alternately, any Jython dictionary with the following keys:
- fcrepoURL = base URL of the Fedora Repository.
- username = name of a Fedora Repository user.
- password = password corresponding to the username.
- pid = identifier for object to be queried.
- objLabel = label for object to be created.
- dsid = identifier of datastream to be queried.
- dsLabel = label for datastream to be created.
- dsLocation = URL of file containing datastream content.
- mimeType = mime type of datastream content.
...
- Display a form dialog for entering parameters that can be used to create a new object with a single datastream. Uses SimpleHTMLDialog from fcrepo.kepler to display and manage the form.
- Use fcrepo.http.restapi to create the new object. Display results.
- Use fcrepo.http.restapi to add a datastream. Display results.
Screenshot :
IngestWithDatastream.jpg
Image Added
Source file :
IngestWithDatastream.xml