Fix layout of search widget on home page.
Fix printing condition of db serach widget.
Merge pull request #5068 from openscholar/5050

Fix layout of search widget on home page when using Solr.