public function execute()
 {
     $searchWord = trim($this->parentPlugin->piVars['q']);
     $searchWord = t3lib_div::removeXSS($searchWord);
     $nothingFound = strtr($this->parentPlugin->pi_getLL('no_results_nothing_found'), array('@searchWord' => htmlentities($searchWord, ENT_QUOTES, $GLOBALS['TSFE']->metaCharset)));
     $searchedFor = strtr($this->parentPlugin->pi_getLL('results_searched_for'), array('@searchWord' => htmlentities($searchWord, ENT_QUOTES, $GLOBALS['TSFE']->metaCharset)));
     return array('nothing_found' => $nothingFound, 'searched_for' => $searchedFor);
 }
 protected function getPageBrowserRange()
 {
     $label = '';
     $resultsFrom = $this->search->getResponse()->start + 1;
     $resultsTo = $resultsFrom + count($this->search->getResponse()->docs) - 1;
     $resultsTotal = $this->search->getNumberOfResults();
     $label = strtr($this->parentPlugin->pi_getLL('results_range'), array('@resultsFrom' => $resultsFrom, '@resultsTo' => $resultsTo, '@resultsTotal' => $resultsTotal));
     return $label;
 }
    protected function addFacetsJavascript()
    {
        $jsFilePath = t3lib_extMgm::siteRelPath('solr') . 'resources/javascript/pi_results/results.js';
        // TODO make configurable once someone wants to use something other than jQuery
        $GLOBALS['TSFE']->additionalHeaderData[$this->parentPlugin->prefixId . '_faceting'] = '
			<script type="text/javascript">
			/*<![CDATA[*/

			var tx_solr_facetLabels = {
				\'showMore\' : \'' . $this->parentPlugin->pi_getLL('faceting_showMore') . '\',
				\'showFewer\' : \'' . $this->parentPlugin->pi_getLL('faceting_showFewer') . '\'
			};

			/*]]>*/
			</script>
			';
        if ($this->parentPlugin->conf['addDefaultJs']) {
            $GLOBALS['TSFE']->additionalHeaderData[$this->parentPlugin->prefixId . '_faceting'] .= '<script type="text/javascript" src="' . $jsFilePath . '"></script>';
        }
    }