Replace every instance of dist: in the query string

This makes "Search in distribution" when already searching in a
distribution work as expected.
Hide "Search in distribution" link when searching for one dist
Merge pull request #823 from dgl/dist-search

Fixes for search in distribution