* @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.BlueStyle.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_Blue_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $luceneclassdir = $this->params['luceneclassdir']; $lucenedir = $this->params['lucenedir']; $index = $this->params['index']; $this->htmlStartPage(getMLText('fulltext_info')); $this->globalNavigation(); $this->pageNavigation(getMLText('fulltext_info')); $this->contentContainerStart(); $numDocs = $index->count(); echo "
";
		for ($id = 0; $id < $numDocs; $id++) {
			if (!$index->isDeleted($id)) {
				$hit = $index->getDocument($id);
				echo $hit->document_id.": ".htmlspecialchars($hit->title)."\n";
			}
		}
		echo "
"; $terms = $index->terms(); echo "

".count($terms)." Terms

"; echo "
";
		foreach($terms as $term) {
			echo htmlspecialchars($term->field).":".htmlspecialchars($term->text)."\n";
		}
		echo "
"; $this->contentContainerEnd(); $this->htmlEndPage(); } /* }}} */ } ?>