From b8cdc71a6747d659c46145ff9790742ddd97dee2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Lahmann?= <lahmann@ub.uni-leipzig.de>
Date: Thu, 17 Nov 2016 15:09:44 +0100
Subject: [PATCH] * fixed bug in description template calling Marc-record-only
 method

---
 themes/finc/templates/RecordTab/description.phtml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/themes/finc/templates/RecordTab/description.phtml b/themes/finc/templates/RecordTab/description.phtml
index 27e327f7f90..c98e243f6d4 100644
--- a/themes/finc/templates/RecordTab/description.phtml
+++ b/themes/finc/templates/RecordTab/description.phtml
@@ -245,8 +245,9 @@
       </td>
     </tr>
   <? endif; ?>
-  
-  <? $callnumbers = $this->driver->getLocalSignature(); if (!empty($callnumbers)): ?>
+
+  <? /* getLocalSignature works only for Marc-Records, so try this method */ ?>
+  <? $callnumbers = $this->driver->tryMethod('getLocalSignature'); if (!empty($callnumbers)): ?>
     <? $contentDisplayed = true; ?>
     <tr>
         <th><?=$this->transEsc('Call Number')?>: </th>
-- 
GitLab