From 4ffb4c10053852779b4cf786e6445d55184f86b6 Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Wed, 11 Dec 2013 17:41:25 -0500
Subject: [PATCH] Modal link titles.

---
 themes/bootstrap/js/lightbox.js                        | 6 +++++-
 themes/bootstrap/templates/RecordTab/holdingsils.phtml | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/themes/bootstrap/js/lightbox.js b/themes/bootstrap/js/lightbox.js
index fc238868cd8..6523a1307b8 100644
--- a/themes/bootstrap/js/lightbox.js
+++ b/themes/bootstrap/js/lightbox.js
@@ -501,6 +501,10 @@ $(document).ready(function() {
   });
   // Modal title
   $('.modal-link,.help-link').click(function() {
-    $('#modal .modal-header h3').html($(this).attr('title'));
+    var title = $(this).attr('title');
+    if(typeof title === "undefined") {
+      title = $(this).html();
+    }
+    $('#modal .modal-header h3').html(title);
   });
 });
\ No newline at end of file
diff --git a/themes/bootstrap/templates/RecordTab/holdingsils.phtml b/themes/bootstrap/templates/RecordTab/holdingsils.phtml
index 14a35a97281..5446190453e 100644
--- a/themes/bootstrap/templates/RecordTab/holdingsils.phtml
+++ b/themes/bootstrap/templates/RecordTab/holdingsils.phtml
@@ -95,7 +95,7 @@
               <? /* Begin Available Items (Holds) */ ?>
                <span class="text-success"><?=$this->transEsc("Available")?><link property="availability" href="http://schema.org/InStock" /></span>
               <? if (isset($row['link']) && $row['link']): ?>
-                <a<?=$check ? ' class="checkRequest"' : ''?> class="placehold" href="<?=$this->recordLink()->getHoldUrl($row['link'])?>"><?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></a>
+                <a<?=$check ? ' class="checkRequest"' : ''?> class="modal-link placehold" href="<?=$this->recordLink()->getHoldUrl($row['link'])?>" title="<?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?>"><?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></a>
               <? endif; ?>
             <? else: ?>
               <? /* Begin Unavailable Items (Recalls) */ ?>
-- 
GitLab