Hide search form for ressource in some cases. closes #4156