diff --git a/module/VuFind/src/VuFind/RecordTab/CollectionList.php b/module/VuFind/src/VuFind/RecordTab/CollectionList.php index c2d64a118b623110eb49968fbe3d6b3704cbca59..eff74b5c74ab1ab48f4516071de97a202fc9dfd9 100644 --- a/module/VuFind/src/VuFind/RecordTab/CollectionList.php +++ b/module/VuFind/src/VuFind/RecordTab/CollectionList.php @@ -112,4 +112,15 @@ class CollectionList extends AbstractBase { return $this->getResults()->getRecommendations('side'); } + + /** + * Can this tab be loaded via AJAX? + * + * @return bool + */ + public function supportsAjax() + { + // No, special sidebar needed. + return false; + } } \ No newline at end of file diff --git a/module/VuFind/src/VuFind/RecordTab/HierarchyTree.php b/module/VuFind/src/VuFind/RecordTab/HierarchyTree.php index 5791f08365d1b2ca0e60c71e3ba7001330e15967..3911269be09236a696f9ecf1cf117fb7db5a9cf1 100644 --- a/module/VuFind/src/VuFind/RecordTab/HierarchyTree.php +++ b/module/VuFind/src/VuFind/RecordTab/HierarchyTree.php @@ -205,4 +205,15 @@ class HierarchyTree extends AbstractBase return isset($config->Hierarchy->treeSearchLimit) ? $config->Hierarchy->treeSearchLimit : -1; } + + /** + * Can this tab be loaded via AJAX? + * + * @return bool + */ + public function supportsAjax() + { + // No, special width adjustment needed. + return false; + } } \ No newline at end of file diff --git a/themes/bootstrap3/templates/collection/view.phtml b/themes/bootstrap3/templates/collection/view.phtml index 2bd1d8491fbd2f330049d095a99060bd633c4e81..fc4b82ae9b0f092675152b9932ca817432eef854 100644 --- a/themes/bootstrap3/templates/collection/view.phtml +++ b/themes/bootstrap3/templates/collection/view.phtml @@ -47,7 +47,7 @@ <?=$this->record($this->driver)->getToolbar()?> <div class="row"> - <div class="<?=$this->layoutClass('mainbody') ?>"> + <div class="<?=$tree ? 'col-sm-12' : $this->layoutClass('mainbody') ?>"> <div class="record"> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>" class="hiddenId" id="record_id" /> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" class="hiddenSource" /> @@ -67,8 +67,8 @@ $this->layout()->breadcrumbs .= ' <li class="active">' . $this->transEsc($desc) . '</li>'; $activeTabObj = $obj; } - if (!$obj->isVisible()) { $tab_classes = 'hidden'; } - if (!$obj->supportsAjax()) { $tab_classes = 'noajax'; } + if (!$obj->isVisible()) { $tab_classes[] = 'hidden'; } + if (!$obj->supportsAjax()) { $tab_classes[] = 'noajax'; } ?> <li<?=count($tab_classes) > 0 ? ' class="' . implode(' ', $tab_classes) . '"' : ''?>> <a id="<?=strtolower($tab) ?>" href="<?=$this->recordLink()->getTabUrl($this->driver, $tab)?>#tabnav"><?=$this->transEsc($desc)?></a>