results; $params = $results->getParams(); $lookfor = $results->getUrlQuery()->isQuerySuppressed() ? '' : $params->getDisplayQuery(); $recordTotal = $results->getResultTotal(); // More link should use default limit, not custom limit: $moreUrl = $this->url($params->getOptions()->getSearchAction()) . $results->getUrlQuery()->setPage(1)->setLimit($params->getOptions()->getDefaultLimit()); // Advanced search link $advancedSearchAction = ($currentSearch['advanced_link_bottom'] ?? false) ? $params->getOptions()->getAdvancedSearchAction() : false; $advancedSearchUrl = $advancedSearchAction ? $this->url($advancedSearchAction, [], ['query' => ['edit' => $results->getSearchId()]]) : false; // Generate JS code that will move a given recommendation module over to the sidebar $generateMoveRecommendationToSidebarJavascript = function ($recommendationClass) { return <<escapeHtml($domId ?? 'combined_' . $searchClassId); $countsJs = <<"; const span = template.content.children[0]; const combinedJumpLinks = document.querySelector('.combined-jump-links'); const link = combinedJumpLinks?.querySelector('.$classId'); if (link) { link.append(span); link.style.display = "inline"; combinedJumpLinks.style.visibility = "inherit"; } } if (document.readyState != 'loading') { updateJumpLink_$classId(); } else { document.addEventListener('DOMContentLoaded', updateJumpLink_$classId); } JS; ?> inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $countsJs, 'SET')?>

transEsc($currentSearch['label'])?>

transEsc($currentSearch['label'])?>

transEsc($currentSearch['sublabel'])?>

permission()->allowDisplay($permission)): ?> permission()->getAlternateContent($permission)): ?>
0): ?> getRecommendations('top')) as $current): ?> recommend($current)?> getRecommendations('side')) as $current): $recommendationClass = str_replace('\\', '_', $current::class); $recommendationJs = $generateMoveRecommendationToSidebarJavascript($recommendationClass); ?> inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $recommendationJs, 'SET')?> context()->renderInContext( 'search/controls/showing.phtml', compact('lookfor', 'recordTotal', 'params', 'results') ); ?>

transEsc('nohit_heading')?>

slot('empty-message')->get($this->translate('nohit_lookfor_html', ['%%lookfor%%' => $this->escapeHtml($lookfor)])); ?>

parseError)): ?>

transEsc('nohit_parse_error')?>

getRecommendations('top')) as $current): ?> recommend($current)?> getRecommendations('noresults') as $current): ?> recommend($current)?> getRecommendations('noresults_side') as $current): ?> inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $recommendationJs, 'SET')?> getViewList())) ? 'list' : $params->getView(); $viewParams = [ 'results' => $results, 'request' => $view->request, 'params' => $params, 'excludeResultIds' => true, // Don't add id attributes to results to avoid duplicates 'combined' => true, // Flag that we're in combined mode; may be useful to customize template behavior ]; ?> render('search/list-' . $viewType . '.phtml', $viewParams)?>