This repository has been archived by the owner on Jun 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Single Item Submission Process
Jim Coble edited this page Jun 20, 2014
·
10 revisions
https://github.com/duke-libraries/dul-hydra/issues/290
- Select Collection (required - preset if launched from "Add Item" link on collection page)
- Enter descriptive metadata (for the item, title required)
- Select one or more files to upload (components, required)
SUBMIT
- Create a new DulHydra::Batch::Models::Batch, setting
user
tocurrent_user
- Associated with that batch, create a new DulHydra::Batch::Models::IngestBatchObject for the Item
-
model
:Item
-
pid
: Mint a PID for the Item - Create a DulHydra::Batch::Models::BatchObjectDatastream for desc_Metadata
-
payload
: desc_Metadata.content based on form attributes -
payload_type
: DulHydra::Batch::Models::BatchObjectDatastream::PAYLOAD_TYPE_BYTES
-
- Create a DulHydra::Batch::Models::BatchObjectRelationship for parent (i.e., Collection)
- Create a DulHydra::Batch::Models::BatchObjectRelationship for admin policy
-
- Associated with that batch, create a new DulHydra::Batch::Models::IngestBatchObject for each Component
-
model
:Component
- Create a DulHydra::Batch::Models::BatchObjectRelationship for parent (i.e., Item)
- Create a DulHydra::Batch::Models::BatchObjectRelationship for admin policy
-
- Create a new Item
- Set the descriptive metadata
- Add the item to the collection
- Set the initial permissions of the Item -- see Initial Permissions for New Objects
- Create a "creation" PreservationEvent for the item
- For each file:
- Create a new Component
- Set the file to the component's content
- Add the component to the item
- Generate a thumbnail for the component (if appropriate for the file type)
- Set the source term (dc:source) to the original file name
- Set the initial permissions of the Component -- see Initial Permissions for New Objects
- Create an "ingestion" PreservationEvent for the Component
- Copy the thumbnail from the first Component that has one to the Item thumbnail
- Copy the Item thumbnail, if it has one to the Collection, unless it already has one
REDIRECT TO ITEM SHOW PAGE