Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Adding metadata to the asset using XML decoder
vlada
Hello to all,
I have one simple question how to use MediaBin 4.5.2.
We have one image (let call it image1.eps) and separated xml file with image metadata (image1.xml) in the format previously created by XML encoder and in the same folder where is image located.
Now I want to add this image to the MediaBin repository but also I want to import those metadata associated to the image.
How I can do that?
In this moment I have created decoder task that contain XML decoder primitive and when I want to add image to the MediaBin I select to run my XML decoder task. Unfortunately no metadata has been added.
Please help.
Vladimir Ilic
Find more posts tagged with
Comments
lyman
There's middle (transformation) a primitive called the XML Metadata Adder that takes as a parameter the text (not the filename) of the contents of the XML file containing the metadata. You would need to check the file out and check it back in using a task with this data inserted.
What API were you anticipating using?
Cheers,
Lyman Hurd
vlada
Lyman,
Thanks for prompt answer. OK, your method works, but with a little problems.
1. Transformation task works even when I add assets (I do not need to add, check out and check in again). This is OK (one step less).
2. Unfortunately windows user interface shows only tiny little text box that need to be expanded and after that I need to click on it, type some letter, remove that letter (all of this in order to put cursor and focus inside the box) and finally paste XML data. Otherwise will fail.
3. Web interface is even worse. It allows me to copy only first line of XML data and therefore always fail. If I edit my XML data, remove end of line, and try to paste as one line limited field size will truncate XML data somewhere in the middle and fail again.
Finally I do not use any API. My idea is to skip programming in this phase as much as possible.
At the end some additional questions:
1. Is there any other automated way how I can add assets and its metadata using tools available to the default windows client or I’m forced to create some application that will perform image check-in together with metadata assignment?
2. Is there any way to make those tiny little metadata edit boxes (inside windows client) bigger and more users friendly?
Thanks,
Vladimir Ilic
vlada
To reply to myself. Definitely I will need to make some code and that will be using MediaBin web service.
Now I have just one more question (in this moment :-)). Is there any C# sample that demonstrates how to create placeholder using Web service API?
Thanks in advance,
Vladimir
Migrateduser
If you have access to the web client asp code, you could try making this change in include\GetRTPParameters-Show.asp to remove the MAXLENGTH=250 attribute on the HTML runtime parameter entry form.
Look for the case for MDTypeStringEdit followed by the statement: ' Build the HTML for the Textbox. You'll see where MAXLENGTH is included in a statement a couple lines below the comment. Either remove it or set it to something very large.
I'm not sure this will work for you all the way through to the server, but at least it will allow you to enter more than 250 characters from the web client. You will still need to purge the end of line characters.
divideby0.rptdesign