Added a bit of logic to search view to account for global searches.

Fixed major typos from search template (global search).