You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Get search results

Default html interface

http://web.search.cornell.edu/search?client=default_frontend&site=libraries&q=canoe

Via web service

http://web.search.cornell.edu/search?output=xml_no_dtd&client=default_frontend&site=libraries&q=canoe

Modifying the search form

<form action="search_browse.php" method="GET" name="gs">
    <div id="search-input">
        <label for="search-form-query">SEARCH:</label>
        <input type="text" name="q" value="{$search_query}" size="20" maxlength="256" id="search-form-query" />
        <input type="submit" name="btnG" value="go" id="search-form-submit" />
        <input type="hidden" name="output" value="xml_no_dtd" />
        <input type="hidden" name="sort" value="" />
        <input type="hidden" name="ie" value="UTF-8" />
        <input type="hidden" name="client" value="default_frontend" />
        <input type="hidden" name="oe" value="UTF-8" />
        <input type="hidden" name="site" value="default_collection" />
    </div>
    <div id="search-filters">
        <input type="radio" name="sitesearch" value="{$thisSite}" {if empty($sitesearch) || ($sitesearch == "$thisSite")}checked="checked"{/if} id="search-filters1" />
        <label for="search-filters1">This site</label>
        <input type="radio" name="sitesearch" value="cornell.edu" {if ($sitesearch == "cornell.edu")}checked="checked"{/if} id="search-filters2" />
        <label for="search-filters2">Cornell</label>
        <a href="http://web.search.cornell.edu/"     >more options</a>
    </div>
</form>

Search Results - Coldfusion

Search Results - php

  • No labels