Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Required Packages :
  • JyFedoREST
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.

...

  • FCRepoKepler
Source file :

IngestDialogActor.py

Input ports :
  • None
Output port :

...

Required Packages :
  • JyFedoREST
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.

...

  1. 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.
  2. Use fcrepo.http.restapi to create the new object. Display results.
  3. Use fcrepo.http.restapi to add a datastream. Display results.
Screenshot :

IngestWithDatastream.jpgImage Added

Source file :

IngestWithDatastream.xml