Please do not spider search results in an automated fashion. " ."It can generate significant system load. "; if ($GLOBALS["G_PluginManager"]->PluginEnabled("XmlSitemap")) { print "Instead, please use the " ."XML Sitemap " ."that we provide."; } print "

"; return; } # set page title PageTitle("Search Results - ".StdLib::NeatlyTruncateString( $H_SearchParams->TextDescription(FALSE), 120)); # ----- LOCAL FUNCTIONS ------------------------------------------------------ /** * Process an array of search facets, generating the necessary HTML for * each. * @param array $Facets Search facets to display. This is keyed by * FieldName. If there are no sub-selections, then the value is an * array of hrefs for URLs that will modify the search. If there * are subselection, then the value is an array that contains a * single array where the last element is a link to remove the * current selection and the other elements are suggestions. * @param array $FieldsOpenByDefault List of fields to be initially open. * @param bool $DisplayCounts If TRUE, resource counts will be added * to the list item if available. */ function PrintSearchFacets($Facets, $FieldsOpenByDefault, $DisplayCounts) { # ShrinkCounter counts the number of shrinkable facet spans so # that each can have a unique class name static $ShrinkCounter = 0; # if we have any facets if (count($Facets) > 0) { # iterate over each foreach ($Facets as $Key => $Values) { # if this facet should be open, display it as such, otherwise # display a closed facet (the HTML below differs in which # elements get the "display: none" initially applied) $ToggleClass = "DD_Toggle".$ShrinkCounter; if (isset($FieldsOpenByDefault[$Key])) { print "
" ."[" ."" ."" ."] ".$Key."" ."
\n" ."