From 961dbc55207bddfadae806ab3b2184681b870550 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 3 Jul 2014 13:04:59 -0400
Subject: [PATCH] More accessible ajaxTab action.

---
 module/VuFind/config/module.config.php                 | 2 +-
 module/VuFind/src/VuFind/Controller/AbstractRecord.php | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php
index 2ffa86d3edf..36462fc433f 100644
--- a/module/VuFind/config/module.config.php
+++ b/module/VuFind/config/module.config.php
@@ -583,7 +583,7 @@ $recordRoutes = array(
 // URLs are hard-coded to specific actions; this array lists those actions.
 $nonTabRecordActions = array(
     'AddComment', 'DeleteComment', 'AddTag', 'Save', 'Email', 'SMS', 'Cite',
-    'Export', 'RDF', 'Hold', 'BlockedHold', 'Home', 'StorageRetrievalRequest',
+    'Export', 'RDF', 'Hold', 'BlockedHold', 'Home', 'StorageRetrievalRequest', 'AjaxTab',
     'BlockedStorageRetrievalRequest', 'ILLRequest', 'BlockedILLRequest', 'PDF',
 );
 
diff --git a/module/VuFind/src/VuFind/Controller/AbstractRecord.php b/module/VuFind/src/VuFind/Controller/AbstractRecord.php
index 63f35f14790..4e718112088 100644
--- a/module/VuFind/src/VuFind/Controller/AbstractRecord.php
+++ b/module/VuFind/src/VuFind/Controller/AbstractRecord.php
@@ -229,6 +229,7 @@ class AbstractRecord extends AbstractBase
     public function ajaxtabAction()
     {
         $this->loadRecord();
+        $this->layout()->setTemplate('layout/lightbox');
         return $this->showTab(
             $this->params()->fromPost('tab', $this->getDefaultTab()), true
         );
-- 
GitLab