Cordra includes a graphical interface for web browsers which enables users to create, retrieve, update, delete, search, and protect digital objects. When logged into the Cordra UI as an administrator, you will see an additional “Admin” dropdown menu at the top of the screen.
Each of these options can be used to modify how Cordra looks and functions. The options are described below.
The Types page can be used to add and/or modify the types stored in Cordra. A list of types is shown. There are three default types. To edit a type, click on its name. An editor will appear, showing the schema and JavaScript for the type. Make any changes you would like, and then click the “Save” button.
New types can be added either one at a time or in bulk. To add an individual type, click the “Add” button. In the dialog that pops up, choose a name for the type and a template. If you would like for an example JavaScript to be populated in the editor, select the “Include example JavaScript” checkbox. Then click the “Add” button. The dialog will close, and the new type will be available in the editing interface. Make any additional changes required, and then click the “Save” button to save the new type.
To add multiple types at once, you will first need JSON file containing the types. Here is an example file:
{
"results": [
{
"id": "test/171a0606f7c74580fd39",
"type": "Schema",
"content": {
"identifier": "test/171a0606f7c74580fd39",
"name": "Group",
"schema": < Schema json omitted for brevity >,
"javascript": < JavaScript omitted for brevity >
},
"metadata": {
"createdOn": 1535479938849,
"createdBy": "admin",
"modifiedOn": 1535479938855,
"modifiedBy": "admin",
"txnId": 65
}
},
{
"id": "test/171a0606f7c74580fd39",
"type": "Schema",
"content": {
"identifier": "test/171a0606f7c74580fd39",
"name": "Document",
"schema": < Schema json omitted for brevity >
},
"metadata": {
"createdOn": 1535479938849,
"createdBy": "admin",
"modifiedOn": 1535479938855,
"modifiedBy": "admin",
"txnId": 65
}
},
]
}
The format of the file is similar to the format of the response to an object query. You can download json for types currently in Cordra using the Search API:
GET /search?query=type:"Schema"
The results of this query can be edited to create a new file for upload. Extra fields like pageNum and pageSize do not need to be removed.
To upload the types file, first click the “Load from file” button in the Types admin UI. Next, select the file to upload. If you would like to delete existing types, check the checkbox indicting such. If you choose not to delete existing types first, an error will be throw if you try to upload a duplicate type. Click the “Load” button to load the types into Cordra.
See Design Object for details.