set class of container, put terms in span

This commit is contained in:
Uwe Steinmann 2022-12-09 10:54:28 +01:00
parent 8340f9eb64
commit a00883c100

View File

@ -44,11 +44,11 @@ class SeedDMS_View_IndexInfo extends SeedDMS_Theme_Style {
$numDocs = $index->count(); $numDocs = $index->count();
echo "<legend>".$numDocs." ".getMLText('documents')."</legend>"; echo "<legend>".$numDocs." ".getMLText('documents')."</legend>";
$this->contentContainerStart(); $this->contentContainerStart('fulltextinfo');
for ($id = 0; $id < $numDocs; $id++) { for ($id = 0; $id < $numDocs; $id++) {
if (!$index->isDeleted($id)) { if (!$index->isDeleted($id)) {
if($hit = $index->getDocument($id)) if($hit = $index->getDocument($id))
echo "<span title=\"".$hit->document_id."\">".htmlspecialchars($hit->title)."</span>\n"; echo "<span title=\"".$hit->document_id."\">".htmlspecialchars($hit->title)."</span> ";
} }
} }
$this->contentContainerEnd(); $this->contentContainerEnd();
@ -62,10 +62,10 @@ class SeedDMS_View_IndexInfo extends SeedDMS_Theme_Style {
if($field) if($field)
$this->contentContainerEnd(); $this->contentContainerEnd();
echo "<h5>".htmlspecialchars($term->field)."</h5>"; echo "<h5>".htmlspecialchars($term->field)."</h5>";
$this->contentContainerStart(); $this->contentContainerStart('fulltextinfo');
$field = $term->field; $field = $term->field;
} }
echo htmlspecialchars($term->text)."\n"; echo '<span title="'.$term->_occurrence.'">'.htmlspecialchars($term->text)."</span> ";
// echo "<span title=\"".$term->_occurrence."\">".htmlspecialchars($term->text)."</span>\n"; // echo "<span title=\"".$term->_occurrence."\">".htmlspecialchars($term->text)."</span>\n";
} }
$this->contentContainerEnd(); $this->contentContainerEnd();