Adjusting custom templates to use global search.

Analysis Results will now use global search instead of samples only.