<?php
/* jde, modified to include new history class
 *
 * jde, August 09, Original coding
 */
require_once ("db.inc.php");
require_once "historyClass.php";
$the_visitor = setUp();
$history = new History();
$the_history = $history->getHistoryList($the_visitor);
$the_term = getTermValue();
$the_description = '';     // assume an empty term definition

//var_dump( "Glossary Search", $the_term, $the_visitor );

if ( $the_term != 'undefined' ) {   // then we got a term to look for
  if ( getCheckBoxValue() == 'Y' ) {
      $the_description = buildTermDescription($the_term, true, $the_visitor, $the_history); // we want the exact value
  } else {
      $the_description = doDefinition($the_term, $the_visitor, $the_history);
  }
//$the_history = get_history($the_visitor);
//$the_recent_searches = do_recent_searches($the_history);
//$the_cloud = do_cloud();
}
//var_dump( $the_description);
echo outputTextFormatHTML( 'description', $the_description );
