diff --git a/module/VuFind/src/VuFind/Controller/CombinedController.php b/module/VuFind/src/VuFind/Controller/CombinedController.php index efb032d0f55aded71577a631308096ef46da83e7..32b7a6027fd7fd72344c2a6175569f40ed9a182a 100644 --- a/module/VuFind/src/VuFind/Controller/CombinedController.php +++ b/module/VuFind/src/VuFind/Controller/CombinedController.php @@ -160,7 +160,7 @@ class CombinedController extends AbstractSearch $currentOptions = $options->get($current); $supportsCartOptions[] = $currentOptions->supportsCart(); if ($currentOptions->supportsCart()) { - $supportsCart = true; + $supportsCart = true; } list($controller, $action) = explode('-', $currentOptions->getSearchAction()); diff --git a/themes/bootstrap3/templates/combined/results-list.phtml b/themes/bootstrap3/templates/combined/results-list.phtml index de2d54fa7c112f3f56449f23b37909ab3b2c0a13..6a0dee4903874c8c34f7848653c8e2863758e8af 100644 --- a/themes/bootstrap3/templates/combined/results-list.phtml +++ b/themes/bootstrap3/templates/combined/results-list.phtml @@ -70,7 +70,7 @@ 'results' => $results, 'params' => $params ); - if(isset($this->showCartControls) && !$this->showCartControls) { + if(!isset($this->showCartControls) || !$this->showCartControls) { $viewParams['hideCartControls'] = true; } ?> diff --git a/themes/bootstrap3/templates/search/list-list.phtml b/themes/bootstrap3/templates/search/list-list.phtml index db6556a5c019080632d23b1a8a678ac3009a96a9..1f444ad6675198002b0be3853a777692f3236781 100644 --- a/themes/bootstrap3/templates/search/list-list.phtml +++ b/themes/bootstrap3/templates/search/list-list.phtml @@ -1,5 +1,5 @@ <? if (!isset($this->indexStart)) $this->indexStart = 0; ?> -<? $showCheckboxes = (isset($this->showCartControls) && $this->showCartControls) ?> +<? $showCheckboxes = !isset($this->hideCartControls) && $this->cart()->isActive() ?> <? $i = $this->indexStart; foreach ($this->results->getResults() as $current): $recordNumber = $this->results->getStartRecord()+$i-$this->indexStart; ?> <div id="result<?=$i++ ?>" class="row result clearfix">