Metadata fields, metadata categories and metadata forms can be created an organized using metadata administration.
For example, for videos we offer a metadata form that contains 3 categories: Production data, crew info, geographical data. Let’s further say production data contains the fields “production country” and “production date”, crew info contains “director” and “DoP” and geographical info contains “latitude”, “longitude” and “city”.
This form, its categories and fields are managed by AdmiralCloud and can be used out-of-the-box.
Now, let’s assume you want to create your own form for videos of subtype “animation”. This form should contain 2 categories: “Animation Crew” and “Sound Crew”. Animation crew should contains fields “Characters” and “Coloring” and sound crew should contain fields “Sound Effects” and “Music”.
First we need to create those 4 fields. You can set the field type “input” or “select” as well as the labels (in different languages). You can set many more properties using the settings object. See Metadata Field Controller for details.
{
title: "soundEffects",
type: "input"
settings: {
label: {
de: "Toneffekte",
en: "Sound Effects"
}
}
}
In the next step you create the a category using the Metadata Category Controller.
{
category: "Sound Crew",
settings: {
label: {
de: "Tonabteilung",
en: "Sound Crew"
}
}
}
Now you create a metadataType “animation” (or even better, use the managed metadataType “animation”) for the media type video. Use the MetadataType controller.
{
type: "video",
subtype: "animation",
settings: {
i18n: {
de: "Animation",
en: "Animations"
}
}
}
The last step is to create a metadata form for the required fields, categories and the metadataType using Metadata Form Controller.
[
{
"type": "video",
"subtype": "animation",
"fields": [
{
"category": {
"id": 456
},
"settings": {
"required": true
},
"pos": 1,
"fieldId": 123
}
]
}
]
You’re done and can see the results using the config call from Metadata Controller.