Thanks
That's what if figured but I wasn't sure. The tagFromMetadata.php code appears to work (i.e. the admin interface does what it should) but it calls functions that aren't found and so generates errors.
I suppose it might form the basis for the v1.4.x version with a little tweaking from someone who knows what they are doing (i.e. not me).
The workaround code I posted above seems to do OK, though there does seem to be a glitch in the search function. If you search on "EF-S17-85mm f/4-5.6 IS USM" and you have images with that in one of the EXIF tags you've enabled search on, it brings up a number of images and then if you click on one of the images, then on the image page click on search again, it doesn't go back to the search results. It goes to a non-existent page:
/zenphoto/page/search/%22EF-S17-85mm+f%2F4-5.6+IS+USM%22
It appears to be something to do with the way the forward slash is encoded but I haven't quite worked out exactly what the problem is. If you truncate the search to just "EF-S17-85mm" than all works fine. Problem is if you have a 50mm f/1.4 and a 50mm f/1.8, you can't just truncate the name after the "mm" if you want to differentiate between the two lenses. Perhaps I should report this as a bug?