- Created by Emilis Bliudzius (Unlicensed) , last modified by Mathias Mattson (MHM) on Aug 29, 2017
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Next »
Important!
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.
(MM) Add a metadata field to asset info (In short)
- Go to System tools → ConfigManager → Digizuite™ Media Manager → 4.0.0 → OOBE
- In OOBE press Searches and then DigiZuite_System_Framework_AssetInfo
- Press "Output"
- Press "Add"
- Press "Choose metafield group"
- Navigate to the metadata field you'd like to add (Usually beneath Asset → Shared → Asset Info or ... → Options)
- Press "Done"
- Press "Choose metadata field" and select the field you'd like to add.
- (Optional) Change the ID (It just have to be unique to the other searches - you cannot save if it's not)
- (Optional) Copy the ID to make it easier to create a label in the upcoming steps
- (If you've chosen a combo metadata field) You need to wing off the "isArray?". If not, it'll lump in the entries together.
- (If you've chosen a combo metadata field) (Optional) Press "Add custom attributes" and write "searchable" & "true". It will not make it searchable, but instead make entries have a white background.
- Press "Create"
- (Do NOT wing off the "use Solr"!)
- Press "Save" for the search (Not the entry)
- Press "OK"
- Press Labels
- Expand Digizuite™ Media Manager
- Press AssetInfo
- Press "Add label"
- In the new entry that appears, add the ID in the "Constant" and in the "Label" input the text you want it to have in your currently chosen language (If nothing else is shown, you're most likely editing English) Remember to give a Label text for each language.
- Press somewhere else on the page, for the "Save" button to be enabled
- Press "Save"
- Press "OK"
- (Sometimes necessary) Recycle of DC (Likely not MM) through the IIS (Failing to do this, will result in your changes not being in the asset info) - Sometimes you only need to refresh the page.
- Go to your MM web site.
- Go to an asset, and look at its right side data - the label with your data you added some steps back should now be available in your language.
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:
{ "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).
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
At this point, the Asset Preview looks like
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":
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:
- No labels