132 $sInitialSearchManufacturer = $this->_sSearchManufacturer = rawurldecode(
oxConfig::getParameter(
'searchmanufacturer' ) );
134 $this->_blEmptySearch =
false;
135 if ( !$sSearchParamForQuery && !$sInitialSearchCat && !$sInitialSearchVendor && !$sInitialSearchManufacturer ) {
137 $this->_aArticleList = null;
138 $this->_blEmptySearch =
true;
143 if ( !
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree' ) ) {
144 $sInitialSearchManufacturer = null;
148 $oSearchHandler =
oxNew(
'oxsearch' );
149 $oSearchList = $oSearchHandler->getSearchArticles( $sSearchParamForQuery, $sInitialSearchCat, $sInitialSearchVendor, $sInitialSearchManufacturer, $this->
getSortingSql( $this->
getSortIdent() ) );
152 $this->_aArticleList = $oSearchList;
153 $this->_iAllArtCnt = 0;
156 if ( $oSearchList->count() ) {
157 $this->_iAllArtCnt = $oSearchHandler->getSearchArticleCount( $sSearchParamForQuery, $sInitialSearchCat, $sInitialSearchVendor, $sInitialSearchManufacturer );
160 $iNrofCatArticles = (int)
$myConfig->getConfigParam(
'iNrofCatArticles' );
161 $iNrofCatArticles = $iNrofCatArticles?$iNrofCatArticles:1;
162 $this->_iCntPages = round( $this->_iAllArtCnt / $iNrofCatArticles + 0.49 );
176 if ( $oConfig->getConfigParam(
'bl_rssSearch' ) ) {
177 $oRss =
oxNew(
'oxrssfeed');
178 $sSearch = $oConfig->getRequestParameter(
'searchparam',
true );
179 $sCnid = $oConfig->getRequestParameter(
'searchcnid',
true );
180 $sVendor = $oConfig->getRequestParameter(
'searchvendor',
true );
181 $sManufacturer = $oConfig->getRequestParameter(
'searchmanufacturer',
true );
182 $this->
addRssFeed($oRss->getSearchArticlesTitle($sSearch, $sCnid, $sVendor, $sManufacturer), $oRss->getSearchArticlesUrl($sSearch, $sCnid, $sVendor, $sManufacturer),
'searchArticles');
200 if ( $sAddDynParams && ( $aArtList = $this->
getArticleList() ) ) {
202 foreach ( $aArtList as $oArticle ) {
206 $oArticle->appendStdLink( $sAddDynParams );
208 $oArticle->appendLink( $sAddDynParams );
221 $sAddParams .= ($sAddParams?
'&':
'') .
"listtype={$this->_sListType}";
224 if ( $sParam = $oConfig->getRequestParameter(
'searchparam',
true ) ) {
225 $sAddParams .=
"&searchparam=".rawurlencode($sParam);
228 if ( $sParam = $oConfig->getRequestParameter(
'searchcnid' ) ) {
229 $sAddParams .=
"&searchcnid=$sParam";
232 if ( $sParam = rawurldecode( $oConfig->getRequestParameter(
'searchvendor' ) ) ) {
233 $sAddParams .=
"&searchvendor=$sParam";
236 if ( $sParam = rawurldecode( $oConfig->getRequestParameter(
'searchmanufacturer' ) ) ) {
237 $sAddParams .=
"&searchmanufacturer=$sParam";
279 if ( $this->_blSearchClass === null ) {
280 $this->_blSearchClass =
false;
281 if ( strtolower($this->
getConfig()->getRequestParameter(
'cl' )) ==
'search' ) {
282 $this->_blSearchClass =
true;
314 if ( $this->_aSimilarRecommListIds === null ) {
315 $this->_aSimilarRecommListIds =
false;
318 if ( $aList && $aList->count() > 0 ) {
319 $this->_aSimilarRecommListIds = $aList->arrayKeys();
333 if ( $this->_sSearchParamForHtml === null ) {
334 $this->_sSearchParamForHtml =
false;
336 $this->_sSearchParamForHtml = $this->
getConfig()->getRequestParameter(
'searchparam' );
349 if ( $this->_sSearchParam === null ) {
350 $this->_sSearchParam =
false;
352 $this->_sSearchParam = rawurlencode( $this->
getConfig()->getRequestParameter(
'searchparam',
true ) );
365 if ( $this->_sSearchCatId === null ) {
366 $this->_sSearchCatId =
false;
368 $this->_sSearchCatId = rawurldecode( $this->
getConfig()->getRequestParameter(
'searchcnid' ) );
381 if ( $this->_sSearchVendor === null ) {
382 $this->_sSearchVendor =
false;
385 $this->_sSearchVendor = rawurldecode( $this->
getConfig()->getRequestParameter(
'searchvendor' ) );
398 if ( $this->_sSearchManufacturer === null ) {
399 $this->_sSearchManufacturer =
false;
402 $this->_sSearchManufacturer = rawurldecode( $this->
getConfig()->getRequestParameter(
'searchmanufacturer' ) );
415 if ( $this->_oPageNavigation === null ) {
416 $this->_oPageNavigation =
false;
444 $aPath[
'link'] = $this->
getLink();
457 return $this->
getConfig()->getConfigParam(
'blShowListDisplayType' );