diff --git a/module/VuFind/src/VuFind/Controller/AbstractRecord.php b/module/VuFind/src/VuFind/Controller/AbstractRecord.php index 5ad9aa364cde17db2dabf2dc93d0e3518e1f9ed0..546f140728ccf037ac0e19435317bd51615db464 100644 --- a/module/VuFind/src/VuFind/Controller/AbstractRecord.php +++ b/module/VuFind/src/VuFind/Controller/AbstractRecord.php @@ -495,7 +495,7 @@ class AbstractRecord extends AbstractBase $driver = $this->loadRecord(); $view = $this->createViewModel(); - $view->tab = strtolower($tab); + $view->activeTab = strtolower($tab); $view->defaultTab = strtolower($this->defaultTab); // Set up next/previous record links (if appropriate) diff --git a/themes/blueprint/templates/record/view.phtml b/themes/blueprint/templates/record/view.phtml index 4dd2a68b88839fbe33f94087e51dd81d0d129ea3..cc0d5d8a9ea6f4fac4ccfd5c956b0b617a1155b3 100644 --- a/themes/blueprint/templates/record/view.phtml +++ b/themes/blueprint/templates/record/view.phtml @@ -86,7 +86,7 @@ <ul> <? foreach ($tabs as $tab => $desc): ?> <? // add current tab to breadcrumbs if applicable: - $isCurrent = (strtolower($this->tab) == strtolower($tab)); + $isCurrent = (strtolower($this->activeTab) == strtolower($tab)); if ($isCurrent) { $this->layout()->breadcrumbs .= '<span>></span><em>' . $this->transEsc($desc) . '</em>'; } @@ -102,7 +102,7 @@ <div class="recordsubcontent"> - <?=$this->record($this->driver)->getTab($this->tab)?> + <?=$this->record($this->driver)->getTab($this->activeTab)?> </div> <span class="Z3988" title="<?=$this->escapeHtml($this->driver->getOpenURL())?>"></span> diff --git a/themes/jquerymobile/templates/record/header-navbar.phtml b/themes/jquerymobile/templates/record/header-navbar.phtml index 1425e6f345b04e10b677339003927585bdc7f87b..e72dae19608c3c89723ada79287b059ef52cb9f0 100644 --- a/themes/jquerymobile/templates/record/header-navbar.phtml +++ b/themes/jquerymobile/templates/record/header-navbar.phtml @@ -8,7 +8,7 @@ <ul> <? foreach ($tabs as $tab => $desc): ?> <li> - <a rel="external"<?=(strtolower(isset($this->tab) ? $this->tab : '') == strtolower($tab)) ? ' class="ui-btn-active"' : ''?> href="<?=$this->recordLink()->getTabUrl($this->driver, $tab)?>"><?=$this->transEsc($desc)?></a> + <a rel="external"<?=(strtolower(isset($this->activeTab) ? $this->activeTab : '') == strtolower($tab)) ? ' class="ui-btn-active"' : ''?> href="<?=$this->recordLink()->getTabUrl($this->driver, $tab)?>"><?=$this->transEsc($desc)?></a> </li> <? endforeach; ?> </ul> diff --git a/themes/jquerymobile/templates/record/view.phtml b/themes/jquerymobile/templates/record/view.phtml index a352ca0530bf3679b0c9256662817898916afe7d..8eafb0afd7fdde14318b46ef42a0301ccaefb0a8 100644 --- a/themes/jquerymobile/templates/record/view.phtml +++ b/themes/jquerymobile/templates/record/view.phtml @@ -1,13 +1,13 @@ <? // Grab tab contents up front -- this will set the page title, which we need to // do before we display the page header below. - $tab = $this->record($this->driver)->getTab($this->tab); + $tab = $this->record($this->driver)->getTab($this->activeTab); ?> <div data-role="page" id="Record-view"> <?=$this->mobileMenu()->header(array('searchLink' => $this->searchOptions($this->searchClassId)->getSearchHomeAction()))?> <div class="record" data-role="content" data-record-id="<?=$this->escapeHtml($this->driver->getUniqueId())?>"> <?=$this->flashmessages()?> - <? if ($this->tab == $this->defaultTab): ?> + <? if ($this->activeTab == $this->defaultTab): ?> <?=$this->record($this->driver)->getCoreMetadata()?> <? else: ?> <h3><?=$this->escapeHtml($this->driver->getBreadcrumb())?></h3>