From 236b58d8369e20ec77ba291bfce973b0a8e72421 Mon Sep 17 00:00:00 2001
From: Dorian Merz <merz@ub.uni-leipzig.de>
Date: Wed, 13 Nov 2019 13:33:19 +0100
Subject: [PATCH] refs #16416 [master-v5] bugfix in fallback URLs

* uses URL as link label in case there is noc description given
---
 themes/finc/templates/RecordTab/holdingsils.phtml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/finc/templates/RecordTab/holdingsils.phtml b/themes/finc/templates/RecordTab/holdingsils.phtml
index f596f0d2f1a..a30510273da 100644
--- a/themes/finc/templates/RecordTab/holdingsils.phtml
+++ b/themes/finc/templates/RecordTab/holdingsils.phtml
@@ -75,7 +75,7 @@ if (!empty($holdingTitleHold)): ?>
       if (!empty($fallbackUrls)): ?>
         <span id="urlsHideable" style="display: none">
           <?php foreach ($fallbackUrls as $current): ?>
-            <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" target="_blank"><?=$this->escapeHtml($current['desc'])?></a><br/>
+            <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" target="_blank"><?=$this->escapeHtml($current['desc'] ?? $current['url'])?></a><br/>
           <?php endforeach; ?>
         </span>
       <?php endif; ?>
-- 
GitLab