143 $sSearchParamForQuery = trim($oConfig->getRequestParameter(
'searchparam',
true));
146 $sInitialSearchCat = $this->_sSearchCatId = rawurldecode($oConfig->getRequestParameter(
'searchcnid'));
149 $sInitialSearchVendor = rawurldecode($oConfig->getRequestParameter(
'searchvendor'));
152 $sManufacturerParameter = $oConfig->getRequestParameter(
'searchmanufacturer');
153 $sInitialSearchManufacturer = $this->_sSearchManufacturer = rawurldecode($sManufacturerParameter);
155 $this->_blEmptySearch =
false;
156 if (!$sSearchParamForQuery && !$sInitialSearchCat && !$sInitialSearchVendor && !$sInitialSearchManufacturer) {
158 $this->_aArticleList = null;
159 $this->_blEmptySearch =
true;
165 if (!
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree')) {
166 $sInitialSearchManufacturer = null;
171 $oSearchHandler =
oxNew(
'oxsearch');
172 $oSearchList = $oSearchHandler->getSearchArticles(
173 $sSearchParamForQuery,
175 $sInitialSearchVendor,
176 $sInitialSearchManufacturer,
181 $this->_aArticleList = $oSearchList;
182 $this->_iAllArtCnt = 0;
185 if ($oSearchList->count()) {
186 $this->_iAllArtCnt = $oSearchHandler->getSearchArticleCount(
187 $sSearchParamForQuery,
189 $sInitialSearchVendor,
190 $sInitialSearchManufacturer
194 $iNrofCatArticles = (int)
$myConfig->getConfigParam(
'iNrofCatArticles');
195 $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 1;
196 $this->_iCntPages = round($this->_iAllArtCnt / $iNrofCatArticles + 0.49);
210 if ($oConfig->getConfigParam(
'bl_rssSearch')) {
211 $oRss =
oxNew(
'oxrssfeed');
212 $sSearch = $oConfig->getRequestParameter(
'searchparam',
true);
213 $sCnid = $oConfig->getRequestParameter(
'searchcnid',
true);
214 $sVendor = $oConfig->getRequestParameter(
'searchvendor',
true);
215 $sManufacturer = $oConfig->getRequestParameter(
'searchmanufacturer',
true);
216 $sSearchArticlesTitle = $oRss->getSearchArticlesTitle($sSearch, $sCnid, $sVendor, $sManufacturer);
217 $sSearchArticlesUrl = $oRss->getSearchArticlesUrl($sSearch, $sCnid, $sVendor, $sManufacturer);
218 $this->
addRssFeed($sSearchArticlesTitle, $sSearchArticlesUrl,
'searchArticles');
236 foreach ($aArtList as $oArticle) {
240 $oArticle->appendStdLink($sAddDynParams);
242 $oArticle->appendLink($sAddDynParams);
255 $sAddParams .= ($sAddParams ?
'&' :
'') .
"listtype={$this->_sListType}";
258 if ($sParam = $oConfig->getRequestParameter(
'searchparam',
true)) {
259 $sAddParams .=
"&searchparam=" . rawurlencode($sParam);
262 if ($sParam = $oConfig->getRequestParameter(
'searchcnid')) {
263 $sAddParams .=
"&searchcnid=$sParam";
266 if ($sParam = rawurldecode($oConfig->getRequestParameter(
'searchvendor'))) {
267 $sAddParams .=
"&searchvendor=$sParam";
270 if ($sParam = rawurldecode($oConfig->getRequestParameter(
'searchmanufacturer'))) {
271 $sAddParams .=
"&searchmanufacturer=$sParam";
284 if ($this->_blSearchClass === null) {
285 $this->_blSearchClass =
false;
286 if (strtolower($this->
getConfig()->getRequestParameter(
'cl')) ==
'search') {
287 $this->_blSearchClass =
true;
323 if ($this->_aSimilarRecommListIds === null) {
324 $this->_aSimilarRecommListIds =
false;
327 if ($aList && $aList->count() > 0) {
328 $this->_aSimilarRecommListIds = $aList->arrayKeys();
342 if ($this->_sSearchParamForHtml === null) {
343 $this->_sSearchParamForHtml =
false;
345 $this->_sSearchParamForHtml = $this->
getConfig()->getRequestParameter(
'searchparam');
359 if ($this->_sSearchParam === null) {
360 $this->_sSearchParam =
false;
362 $this->_sSearchParam = rawurlencode($this->
getConfig()->getRequestParameter(
'searchparam',
true));
376 if ($this->_sSearchCatId === null) {
377 $this->_sSearchCatId =
false;
379 $this->_sSearchCatId = rawurldecode($this->
getConfig()->getRequestParameter(
'searchcnid'));
393 if ($this->_sSearchVendor === null) {
394 $this->_sSearchVendor =
false;
397 $this->_sSearchVendor = rawurldecode($this->
getConfig()->getRequestParameter(
'searchvendor'));
411 if ($this->_sSearchManufacturer === null) {
412 $this->_sSearchManufacturer =
false;
415 $sManufacturerParameter = $this->
getConfig()->getRequestParameter(
'searchmanufacturer');
416 $this->_sSearchManufacturer = rawurldecode($sManufacturerParameter);
430 if ($this->_oPageNavigation === null) {
431 $this->_oPageNavigation =
false;
461 $aPath[
'link'] = $this->
getLink();
474 return $this->
getConfig()->getConfigParam(
'blShowListDisplayType');
507 $sTitle .=
' ' .
oxRegistry::getLang()->translateString(
'HITS_FOR', $iBaseLanguage,
false);