Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Note | ||
---|---|---|
| ||
If you want to see the changes, this page describes, in the Media Manager, you MUST recycle the website. |
Three actions are required to add a new meta data field to Media Manager's Asset Preview:
- Add a new meta data Value Field to Media Manager's DigiZuite_System_Framework_AssetInfo search.
- Create a new label (if one does not already exist), whose Constant matches the newly created value field's ID.
- Recycle the Media Manager website.
Info |
---|
(MM) Add a metadata field to asset info (In short)
|
Media Manager's Asset Preview has some data in its right hand panel, such as Title, Upload Date, Width, Height, etc:
The data is requested by calling Media Manager's SearchService.js proxy. The search DigiZuite_System_Framework_Search_AssetInfo is used. This is a special use of SearchService.js in that some post processing is done on the search result, so the response from SearchService.js is not what one might ordinarily expect from DigiZuite_System_Framework_Search_AssetInfo:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "errors": [], "items": [ { "errors": [], "itemId": 9488, "success": true, "valueFields": [ { "format": "", "id": "title", "isIterative": false, "iterativFields": [], "label": "Title", "pattern": "", "searchable": false, "type": "string", "value": "Hydrangeas" }, { "format": "", "id": "description", "isIterative": false, "iterativFields": [], "label": "Description", "pattern": "", "searchable": false, "type": "string", "value": "" }, { "format": "", "id": "uploadDate", "isIterative": false, "iterativFields": [], "label": "Upload Date", "pattern": "", "searchable": false, "type": "string", "value": "2017-01-23T13:53:15.740+01:00" }, { "format": "", "id": "imageWidth", "isIterative": false, "iterativFields": [], "label": "Width", "pattern": "", "searchable": false, "type": "string", "value": "1024" }, { "format": "", "id": "imageHeight", "isIterative": false, "iterativFields": [], "label": "Height", "pattern": "", "searchable": false, "type": "string", "value": "768" }, { "format": "", "id": "imageDPI", "isIterative": false, "iterativFields": [], "label": "DPI", "pattern": "", "searchable": false, "type": "string", "value": "96" }, { "format": "fileSize", "id": "fileSize", "isIterative": false, "iterativFields": [], "label": "File Size", "pattern": "", "searchable": false, "type": "string", "value": "595284" }, { "format": "", "id": "allowDownload", "isIterative": false, "iterativFields": [], "label": "Allow Download", "pattern": "", "searchable": false, "type": "string", "value": "0" }, { "format": "", "id": "menuItems", "isIterative": false, "iterativFields": [], "label": "Portal Menu", "pattern": "", "searchable": false, "type": "array", "value": [ "Digizuite" ] }, { "format": "duration", "id": "videoLength", "isIterative": false, "iterativFields": [], "label": "Duration", "pattern": "hh:mm:ss.fff", "searchable": false, "type": "string", "value": "" } ] } ], "success": true } |
Some JSON Objects' data is not used in the Asset Preview: "videoLength" and "description". These are not used because their values are empty strings. If one were to add a description to the asset used in the image above, the description would also be shown.
1.1 Adding a Keywords value field to the search
Note: Always make sure, you have selected the correct product and version. In this scenario, the product is "DigiZuite™ Media Manager" and the version is "4.0.0" (This is only true for the purposes of this demo: normally one SHOULD never edit the searches in a product's standard version).
View file | ||||
---|---|---|---|---|
|
The value field:
The Custom attributes "searchable" with value "true" makes the Media Manager display the keywords as
If the searchable custom attribute is missing, the keywords are displayed as
Image Modified
At this point, the Asset Preview looks like
Image Modified
The two keywords "pretty" and "flower" are displayed, but there is no label to tell the user what these words mean. So the next step is to add a label.
1.2 Adding a label
This is done by
- Going to DAM Center → System tools → Config manager
- Choosing DigiZuite™ Media Manager.
- Choosing the version.
- Clicking the "Labels" tab.
- Expanding the folder "DigiZuite™ Media Manager".
- Choosing the folder "AssetInfo".
- Adding a new label with a Constant, which matches the keywords value field's ID, ie "Keywords2":
View file name 2017-01-27_09-51-59.mp4 height 250
After recycling the website, the Asset Preview is
Congratulations! You have now added the Keywords meta data field to Media Manager's Asset Preview!
Table of Contents:
Table of Contents |
---|