I want to create a kind of quick-filter select box in a theme that allows the user to pick from all in-use values for a given property. eg, if there were a total of 3 items existing in Omeka with 3 different values for Spatial Coverage, those 3 would all be displayed in a select box and the user could pick a value.
Obviously this won’t scale to huge collections, but that’s not an immediate concern for this project.
What would be a good way to do this? Are there any built in methods for this in the PHP API? It has to be presented in the theme eventually, but I am happy to put auxiliary code in a module. At the moment the only way that I can think is to do search()
and read()
in a loop using the API manager, which seems quite cumbersome.