* @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ /** * Include parent class */ //require_once("class.Bootstrap.php"); /** * Class which outputs the html page for IndexInfo view * * @category DMS * @package SeedDMS * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann * @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_IndexInfo extends SeedDMS_Theme_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $index = $this->params['index']; $this->htmlStartPage(getMLText('fulltext_info')); $this->globalNavigation(); $this->contentStart(); $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); $this->contentHeading(getMLText("fulltext_info")); $numDocs = $index->count(); echo "".$numDocs." ".getMLText('documents').""; /* $this->contentContainerStart('fulltextinfo'); for ($id = 0; $id < $numDocs; $id++) { if (!$index->isDeleted($id)) { if($hit = $index->getDocument($id)) echo "document_id."\">".htmlspecialchars($hit->title)." "; } } $this->contentContainerEnd(); */ $terms = $index->terms(); echo "".count($terms)." overall Terms"; // echo "
";
		$field = '';
		foreach($terms as $term) {
			if($field != $term->field) {
				if($field)
					$this->contentContainerEnd();
				echo "
".htmlspecialchars($term->field)."
"; $this->contentContainerStart('fulltextinfo'); $field = $term->field; } echo ''.htmlspecialchars($term->text)." "; // echo "_occurrence."\">".htmlspecialchars($term->text)."\n"; } $this->contentContainerEnd(); // echo "
"; $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ } ?>