From 559e0cdd8f3d95c49e4b9d73db0dd521a38fd6e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Lahmann?= <lahmann@ub.uni-leipzig.de>
Date: Wed, 31 Aug 2016 13:06:32 +0200
Subject: [PATCH] refs #7841: * bugfix in holdingsils.phtml

---
 themes/finc/templates/RecordTab/holdingsils.phtml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/themes/finc/templates/RecordTab/holdingsils.phtml b/themes/finc/templates/RecordTab/holdingsils.phtml
index 58677a9f221..c7e92db0c1a 100644
--- a/themes/finc/templates/RecordTab/holdingsils.phtml
+++ b/themes/finc/templates/RecordTab/holdingsils.phtml
@@ -22,6 +22,8 @@
     $this->headTitle($this->translate('Holdings') . ': ' . $this->driver->getBreadcrumb());
 ?>
 
+<?$holdingsEmpty=true;?>
+
 <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?>
 
 <?=($offlineMode == "ils-offline") ? $this->render('Helpers/ils-offline.phtml') : ''?>
@@ -51,6 +53,7 @@
   <? if ($openUrlActive): ?><?=$openUrl->renderTemplate()?><? endif; ?>
 <? endif; ?>
 <? foreach ($holdings as $holding): ?>
+  <?$holdingsEmpty=false;?>
   <h3>
     <? $locationText = $this->transEsc('location_' . $holding['location'], array(), $holding['location']); ?>
     <? if (isset($holding['locationhref']) && $holding['locationhref']): ?>
@@ -176,6 +179,10 @@
 </table>
 <? endforeach; ?>
 
+<? if ($holdingsEmpty && $this->driver->tryMethod('getLocalOrderInformation') == 'e'): ?>
+    <h3><?=$this->transEsc("This item has already been ordered and will be available shortly")?></h3>
+<? endif; ?>
+
 <? $history = $this->driver->getRealTimeHistory(); ?>
 <? if (is_array($history) && !empty($history)): ?>
 <h3><?=$this->transEsc("Most Recent Received Issues")?></h3>
-- 
GitLab