Automatically build Opaque objects from template
- Julie Wetherill
- Paul Aloisio
- Emily Kelly
- Former user (Deleted)
Overview
This is a description of the procedure to automatically create a batch of opaque objects from template in Batch Builder 2 (BB).This method should be used if you have 5 or more opaque objects per batch and the object contents are simple (e.g.: several files per object without any nested directories). If the object content consists of many files and nested directories this method becomes impractical. In this latter case use the procedure to manually build Opaque objects from template.
Procedure summary:
- Create a new project
- Enter DRS deposit settings
- Create object template
- Add directories to template
- Add metadata
- Save your work
- Move/copy files into corresponding directories on disk
- Create new batch with objects
- Process the batch
- Upload batch to dropbox
- Check load report in email
What you need before you start:
- Prepare your opaque objects and put them in a directory of your choice somewhere on local hard disk or network drive. Consult DRS2 Content Models Reference for guidelines on creating opaque objects. Note that each opaque object can have only one "content" directory in which the contents are contained. The word "content" is reserved and cannot be used in any directory names that are part of the directory structure of the object itself (i.e. directories nested inside the "content" directory).
- Decide what you will use for Owner Supplied Names (OSNs) for opaque objects. For instance, you could use local classification or local accession numbers. Consult Section 3 Naming rules for files, objects and directories of this Guide for more information.
- Make sure that the object OSNs are supplied for each file by one of the following methods:
- Append the object prefix to each file name (the syntax is [objprefix]--[filename].[ext]). Set the desired file name pattern objects in the BB Options dialog (see File name pattern options in the Installation and Setup section for more information).
- Supply an external mapping file that maps each file to object (see Using mapping.txt File for more information).
Procedure:
Start at Step 5 if you are reusing a project to generate a new batch.
- Create new project in Batch Builder
- From main menu select Project > New.
- Enter project data: Project Name: enter a name for your project (used for internal tracking only). Project Directory: select the directory where project will be saved (click ellipsis button to browse for or create a directory). Content Model: select the appropriate value ("opaque") from the dropdown.
- Click OK to continue.
- Enter DRS deposit settings:
- Click on "Deposit Settings" in Project Panel tree.
- Enter deposit data in the form:
- Batch Name Pattern: default - {owner}{batchDir}{yyyy}{mo}{dd}_{hh24}{mm}{ss}
(This is the name for a batch that appears on DRS deposit reports. Batch name must be at least 3 characters long.)
Success Email: type email and press enter.
Failure Email: type email and press enter.
Success Method: choose how you will receive load report.
Deposit Agent: type your HUID.
Deposit Agent Email: type your official Harvard email address.
- Create object template:
Metadata added at this level will be applied to every object in a batch, unless overridden by specific batch-, object-, or directory-level metadata that you define in later steps.- Click on "Object Template" in Project Panel tree:
- Enter required object metadata in the form:
Owner Code: your owner code (use all caps).
Billing Code: your billing code (use all caps).
Object Access: the DRS access flag. Set value to "N" (no access). - Enter optional admin and descriptive metadata to the object template. Click the "optional" tab. Notable metadata at this level:
- Admin category: assign a category to every object. A curator-assigned label, such as an exhibit name, project name, etc., that can be used to group together a set of objects or files.
- Add directories to template:
About files in opaque objects: All files that make up the opaque object must be stored in one "content" directory. Any documentation files that describe the opaque content must be stored in a "documentation" directory. The "documentation" directory must be parallel to the "content" directory. There can be only one "content" directory per opaque object.
Content directory (an opaque object can have only one directory named "content"):- Add directory: Right click on "Object Template" in Project Panel on the left and add a directory. Content directories are prefixed with "content, but you can append a custom suffix to the directory name.
- Add metadata: click to select the new directory, then add metadata to the form:
Required:
First Generation in DRS: select "yes".
Usage Class: select "LOWUSE".
Optional:
Role: There are no roles for content files.
- Add directory: Right click on "Object Template" in the Project Panel on the left and add a directory. The directory name starts with "documentation" but you can append a custom suffix.
- Add metadata: click to select the new directory, then add metadata to the form:
Required:
First Generation in DRS: select "yes".
Usage Class: select "LOWUSE".
Optional:
Role: You can select either DOCUMENTATION or LICENSE roles for documentation files. Select any role that applies.
- Save your work (Project > Save on main menu).
Copy files into Batch Builder template directory on disk.
The directories you created in BB have been created on disk, in the project's template path:
{project_name}\template\
In the automatic workflow, files are copied into a directory in the template path. In a later step, Batch Builder will use the object name prefix for each file to create object directories and move files for each object into these directories.Note: if you need to check where the directories are on disk, click on "Deposit Settings" in the Project Panel tree and look at the Project Path field at bottom.
** Quick way to copy content files: you can drag files from your file system onto the file template directories in the Batch Builder project panel.
** If using mapping.txt, this is when you should copy it to the auxiliary template path in the project.
** If including external MODS descriptive metadata, this is when you should copy it to the auxiliary template path in the project.- Create new batch with objects:
- Create new batch: From the menu select "Object > Create a new batch with objects from template". Enter the name of the batch directory to be created on disk and click OK.
In response to this action you will see:
"FINISHED - Moved objects to [batch name]" in the message panel.
A new batch directory with red letter B added to the Project Panel.
New object directories (marked by blue letter O), and file directories nested below the batch directory.
Behind the scenes, BB created the batch and object directories on disk and moved the content files from the {project_name}\template directory into the object directories. - Add optional metadata for each object and/or each file. Note that required metadata was supplied by the object template.
Select an object directory (or file directory) in the Project Panel and then select the "optional" tab on the right.
Object metadata: select the object directory, open the "optional" tab.
Notable metadata types include:- Aleph/Alma ID for MODS import: import descriptive metadata from HOLLIS. You can also right-click over the object directory in project panel to assign and Aleph or Alma ID.
- Admin category: a curator-assigned label, such as an exhibit name, project name, etc., that can be used to group together a set of objects or files.
- Descriptive metadata fields (MODS): use only if not importing by Aleph or Alma ID or including external MODS file.
- Admin category: a curator-assigned label, such as an exhibit name, project name, etc., that can be used to group together a set of objects or files.
- To import an object description from HOLLIS, right click on the object directory and select "Set Aleph/Alma ID".
- Save your project (
Project > Save
on main menu).
- Create new batch: From the menu select "Object > Create a new batch with objects from template". Enter the name of the batch directory to be created on disk and click OK.
- Process the batch:
- In the Project Panel tree, right click on the batch you want to process (batch with red letter B) and select "Create descriptors & batch.xml." Or from the main menu, select Batch > Create descriptors & batch.xml.
- Processing messages will appear in the messages pane.
- When the batch is successfully processed you will see the following message: FINISHED - Creation of batch.xml and descriptors complete for batch:
- Upload batch to dropbox:
- Open your SFTP client and log into your DRS2 dropbox account.
- Change to the "incoming" directory.
- Upload the batch: copy the entire batch directory to the "incoming" directory.
- Close the SFTP client. Batch processing will start.
- Check load report in email:
- Open your email inbox.
- Look for message from "drs2-support" with subject "DRS LOAD REPORT …"
- For a more readable report, open the attached text file in Excel, or just copy the file listing and paste into Excel.
On this page: