do not show facetted search if fulltext search is off

This commit is contained in:
Uwe Steinmann 2023-09-12 10:14:54 +02:00
parent 6c298030a5
commit 69786c4196

View File

@ -465,7 +465,7 @@ $(document).ready(function() {
<li class="nav-item <?php echo ($fullsearch == true && $facetsearch == false) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == true && $facetsearch == false) ? 'active' : ''; ?>" data-target="#fulltext" data-toggle="tab" role="button"><?php printMLText('fullsearch'); ?></a></li>
<?php
}
if($enablefacetsearch) {
if($enablefullsearch && $enablefacetsearch) {
?>
<li class="nav-item <?php echo ($facetsearch == true && $facetsearch == true) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($facetsearch == true && $facetsearch == true) ? 'active' : ''; ?>" data-target="#facetfulltext" data-toggle="tab" role="button"><?php printMLText('facetfullsearch'); ?></a></li>
<?php
@ -1055,7 +1055,7 @@ $(document).ready(function() {
// }}}
// Fulltext search with facets Form {{{
if($enablefacetsearch) {
if($enablefullsearch && $enablefacetsearch) {
echo "<div class=\"tab-pane ".(($fullsearch == true && $facetsearch == true) ? 'active' : '')."\" id=\"facetfulltext\">\n";
?>
<form class="form-horizontal" action="<?= $this->params['settings']->_httpRoot ?>out/out.Search.php" name="form2">