mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 06:31:21 +00:00
check if 'facetsearch' is set
This commit is contained in:
parent
c9b31d8de9
commit
36a51e9606
|
@ -69,6 +69,7 @@ if (isset($_GET["removecategory"]) && is_numeric($_GET["removecategory"]) && $_G
|
||||||
$terms = [];
|
$terms = [];
|
||||||
$limit = (isset($_GET["limit"]) && is_numeric($_GET["limit"])) ? (int) $_GET['limit'] : 20;
|
$limit = (isset($_GET["limit"]) && is_numeric($_GET["limit"])) ? (int) $_GET['limit'] : 20;
|
||||||
$fullsearch = ((!isset($_GET["fullsearch"]) && $settings->_defaultSearchMethod == 'fulltext') || !empty($_GET["fullsearch"])) && $settings->_enableFullSearch;
|
$fullsearch = ((!isset($_GET["fullsearch"]) && $settings->_defaultSearchMethod == 'fulltext') || !empty($_GET["fullsearch"])) && $settings->_enableFullSearch;
|
||||||
|
$facetsearch = !empty($_GET["facetsearch"]) && $settings->_enableFullSearch;
|
||||||
if($fullsearch) {
|
if($fullsearch) {
|
||||||
// Search in Fulltext {{{
|
// Search in Fulltext {{{
|
||||||
if (isset($_GET["query"]) && is_string($_GET["query"])) {
|
if (isset($_GET["query"]) && is_string($_GET["query"])) {
|
||||||
|
@ -634,6 +635,7 @@ if($settings->_showSingleSearchHit && count($entries) == 1) {
|
||||||
$view->setParam('totaldocs', $dcount /*resArr['totalDocs']*/);
|
$view->setParam('totaldocs', $dcount /*resArr['totalDocs']*/);
|
||||||
$view->setParam('totalfolders', $fcount /*resArr['totalFolders']*/);
|
$view->setParam('totalfolders', $fcount /*resArr['totalFolders']*/);
|
||||||
$view->setParam('fullsearch', $fullsearch);
|
$view->setParam('fullsearch', $fullsearch);
|
||||||
|
$view->setParam('facetsearch', $facetsearch);
|
||||||
$view->setParam('mode', isset($mode) ? $mode : '');
|
$view->setParam('mode', isset($mode) ? $mode : '');
|
||||||
$view->setParam('orderby', isset($orderby) ? $orderby : '');
|
$view->setParam('orderby', isset($orderby) ? $orderby : '');
|
||||||
$view->setParam('defaultsearchmethod', !empty($_GET["fullsearch"]) || $settings->_defaultSearchMethod);
|
$view->setParam('defaultsearchmethod', !empty($_GET["fullsearch"]) || $settings->_defaultSearchMethod);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user