Change the SQL for the search.
Check if there are some values for the where part. If not return a empty static id list.
Add the "getParameterFilterWidgets" function. Add some more information to the array for the template. Now the format and type are pass to the template.
Code clean up.