Hi,
The Original Metadata is a text file attached to each Image, so you can't query it like in a database.
Unfortunately there's no easy way to do what you want, other than parse the Original Metadata text file for each image in turn.
I've adapted a similar script that parses Original Metadata, to basically do what you want: The user enters a key and value that they're looking for and the script iterates through ALL available images, parsing their metadata, looking for the key-value matches.
Script is here:
https://gist.github.com/3035653The script returns the first of the list of matching images. The web and Insight clients should then provide a link to view that image.
You'll need to edit the script a bit to handle searching for a value between 2 parameters (your first case). Add a couple more parameters to the script etc.
The script might take a long time to run if you have a large number of images in your Database. You could maybe reduce the scope of the search by E.g. first filtering by Image name or Project / Dataset etc.
For info on how to upload and run OMERO scripts, see
http://trac.openmicroscopy.org.uk/ome/wiki/OmeroScriptshttp://cvs.openmicroscopy.org.uk/snapsh ... ow-4.3.movhttp://trac.openmicroscopy.org.uk/ome/w ... rviceGuide