Filtering browse items page

I have included the below search form at the top of my browse items page (items/browse.php) to filter the main items list by Media Type.

Is there a way I can have this form appear only on the main browse items page and not on other pages such as when browsing by tag or in search results?


<form id="advanced-search-form" action="/collections/items/browse" method="GET">
<div class="field">
                                <div class="inputs"><select name="type" id="item-type-search">
    <option value="" label="Filter by Media Type  ">Filter by Media Type</option>
    <option value="" label="All Media Types">All Media Types</option>
    <option value="1" label="Document">Document</option>
    <option value="3" label="Video">Video</option>
    <option value="5" label="Sound">Sound</option>
    <option value="6" label="Image">Image</option>
    <option value="7" label="Website">Website</option>
    <option value="18" label="Readings">Readings</option>
    <option value="17" label="Activities and Assessments">Activities and Assessments</option>
    <option value="10" label="Syllabus">Syllabus</option>
    <option value="16" label="Lecture Materials">Lecture Materials</option>
    <option value="15" label="Others">Others</option>
    <option value="13" label="Interactive Resource">Interactive Resource</option>
</select><input type="submit" class="submit" name="submit_search" id="submit_search_advanced" value="Go" />                </div>


You could test on $_GET, or the existence of specific keys in $_GET, and only display your picker if the $_GET is empty. That would hide this if there's a search, but it would also hide it if a user did a search with this form (since it would add a GET param).

This won't pick up absolutely everything, though. You'd have to deal with the Zend request object for some fancier URLs.

Thanks John. Could you provide an example of how I could use $_GET?