Jump to main content.


Site Help

    Topics

    Glossary

    Site Map


Entering Intranet
Many links on the Web Guide are available to EPA Intranet users only. If you are an outside contractor working for EPA, please contact your EPA representative for more information. If you are another federal agency or other party interested in EPA's web policies and procedures, please contact EPA through the "Contact Us" page on this site.

Questions?


Call the EPA Call Center
EPA Call Center

PDF Disclaimer

You will need Adobe Acrobat Reader to view PDF files. See EPA's PDF page for more information about getting and using the free Acrobat Reader.

Coding the Basic Search Form

How area search works

A search box that searches your program or region´s content is a standard element of content pages on both public access and the intranet. On public access, this search box is included in the agency template.

While we often refer to your area´s content as a collection, there is, in fact, only one physical collection for public access, and one for intranet. Search is restricted to that part of the collection that belongs to you by "filtering". Filtering works by matching one or more piece of text to codes in the collection that are unique to your area. A filtered search is referred to as an "area search".

Coding your search form

Search is implemented in content pages using an HTML form. The same rules apply for forms in static and dynamic content.

  1. All parameter names must be coded in lower case.
  2. Parameter values may not contain < > & or \ .
  3. Use commas to separate multiple terms in the value.

Required fields for area search

The fields below are required both for intranet and public access search forms.

NameValuesComments
typeofsearcharea | epa Use area to search only your area, epa to search entire agency (1.)
areanameThe plain English name of your area as it should appear in the search results. Keep it short! No ampersands (&).
filterSamplefilt.hts |
sample2filt.hts |
sample3filt.hts
See Choosing a Filter section.
fldtssms or URL stringSeparate multiple values with commas. See Choosing a Filter section
result_templateepafiles_default.xsl (public access) | agcyintr_default.xsl (intranet) | custom Extensible style language stylesheet to render results.
querytext  Textbox for entering search terms

1. You can allow the user to toggle between area and epa search

Sample 1. – Search tssms "region13" on public access.

<form method="get" action=" http://nlquery.epa.gov/epasearch/epasearch">

<input type="hidden" name="typeofsearch" value="area">

<input type="hidden" name="areaname" value="Region 13">

<input type="hidden" name="filter" value="samplefilt.hts">

<input type="hidden" name="fld" value="region13">

<input type="hidden" name="result_template" value="epafiles_default.xsl">

<input type="text" name="querytext">

</form>

Sample 2. – Search tssms "region13" on intranet.

<form method="get" action= " http://nlintrasearch.epa.gov/epasearch/epasearch " >

<input type="hidden" name="typeofsearch" value="area">

<input type="hidden" name="areaname" value="Region 13">

<input type="hidden" name="filter" value="samplefilt.hts">

<input type="hidden" name="fld" value="region13">

<input type="hidden" name="result_template" value="agcyintr_default.xsl">

<input type="text" name="querytext">

</form>

Top of page

Choosing a filter

There are two fields available for filtering, TSSMS and URL. You can filter on one, the other or both.

For content on the primary Unix servers www.epa.gov and intranet.epa.gov, you are assigned one or more TSSMS. Pages on servers other than these are still assigned a TSSMS in the collection, for the purpose of filtering. This will be the same TSSMS as you use on the Unix servers unless you request otherwise. Filtering by TSSMS alone is the most common type of filtering. To search all of one or more TSSMS, use samplefilt.hts . samplefilt uses the fld parameter to specify TSSMS.

The URL encoded in the search collection is your preferred alias. If you have only one alias, it is considered your preferred alias. If you have multiple aliases, you must designate which is preferred by (how do we do this these days?). You would filter on a partial URL in addition to TSSMS if you wanted to search only certain directories of your TSSMS. If you want to search one or more directories of one or more TSSMS, use sample3filt.hts . sample3filt uses the fld parameter to specify TSSMS, and the url_directory parameter to specify partial URL.

The least common technique is to filter exclusively on URL. The disadvantage of filtering on URL is that you may have to change your search form each time you add or change an alias. The only possible reasons for filtering are URL exclusively are 1. you want to search all of one TSSMS, but only part of another or 2. there is a directory in one TSSMS you want to search, and a directory of the same name in another TSSMS you do not want to search. If either of these is true, use sample2filt.hts . sample2filt uses the fld parameter to specify partial URL.

Summary of filtering options

filterfldurl_directory
samplefilt.htstssmsN/A
sample2filt.htsurlN/A
sample3filt.htstssmsurl

Optional parameters

The fields below are required both for intranet and public access search forms.

NameValueComments
areacontactsurl If present, this will be the link for "Contact us" in search results. If not present, "Contact us" will link to the Agency contact page.
areasearchurlurlIf present, this will be the link for "Advanced Search" in search results. If not present, "Advanced Search" will link to Agency advanced search.
search_crumbsyes | noControls searching and displaying topical "Browse pages". Default is no for area search, yes for epa search.
search_pdfyes | noControls whether PDF documents are include in the search. Default is yes.
weighted_searchyes | noControls whether ranking boost is applied to documents in Web Inventory (WEB, iWEBI). Default is yes.
weight_stringSee noteUsed to apply custom weighting for ranking. Please consult search webmasters before using this parameter.
sortterm_relevancy | dateControls ordering of search results. Default is term_relevancy (sic).
tmfyes | noControls whether results are for visual presentation. Default is "yes". "no" is typically used only when requesting results in machine-readable format, e.g. XML.

Top of page

Top of Page




Local Navigation





Jump to main content.




0