Wednesday 19 August 2009

iView/Expressions Media Catalog sets to keywords

My long term archive of images is indexed in iview media pro. I still haven't bothered to move to Microsoft Expressions Media yet as there don't seem to be any killer reasons to do the upgrade.
I generate my web galleries from iview using my own custom template, everything is automated and life is good.

I noticed the other day that although I use the (iview:keywords) tag to put all my keywords as metadata into the generated HTML pages, a fair bit of the information I am recording is not being inserted in the files because it is held in catalog sets.

Catalog sets are the iview way of providing a hermetical structure to your metadata. My main use of catalog sets is for locations, for example the image above would be in the Horsey Mill set,which automatically infers that it is also in the Horsey, Norfolk Broads, Norfolk, England and UK sets.

So what I really need is a way to collapse the catalog sets into the keywords field before I create my web galleries. I figured this would need a script to work out which catalog sets apply to an image and then to put them into the keywords metadata for the image.

Searching around the web found a lot of rumours of such a thing but none lead to the code, until finally I came accross this post by John Beardsworth. I simply took Johns code and edited the line:

Const ivKeywordSetName = "Keywords"

and replaced the word "Keywords" with the name of the top level catalog set I want to flattern into the keywords i.e.

Const ivKeywordSetName = "Places"

then run it on the selected images. It worked perfectly..hurrah!

No comments: