Skip to content
Snippets Groups Projects
Commit 7bbde4da authored by André Lahmann's avatar André Lahmann
Browse files

refs #9274:

* hotfix for showing record-urls as fallback for missing link resolver results
parent 488f529b
No related merge requests found
...@@ -48,13 +48,22 @@ ...@@ -48,13 +48,22 @@
<? if (!empty($urls) || $openUrlActive): ?> <? if (!empty($urls) || $openUrlActive): ?>
<h3><?=$this->transEsc("Internet")?></h3> <h3><?=$this->transEsc("Internet")?></h3>
<? if (!empty($urls)): ?> <? if (!empty($urls)): ?>
<span id="urlsHideable" style="display: none">
<? foreach ($urls as $current): ?> <? foreach ($urls as $current): ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>"><?=$this->escapeHtml($current['desc'])?></a><br/> <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>"><?=$this->escapeHtml($current['desc'])?></a><br/>
<? endforeach; ?> <? endforeach; ?>
</span>
<? endif; ?> <? endif; ?>
<? if ($openUrlActive): ?><?=$openUrl->renderTemplate()?><? endif; ?> <? if ($openUrlActive): ?>
<? if (empty($urls)): ?>
<? $fallbackUrls = $this->driver->tryMethod('getURLs'); if (!empty($fallbackUrls)): ?>
<span id="urlsHideable" style="display: none">
<? foreach ($fallbackUrls as $current): ?>
<a href="<?= $this->escapeHtmlAttr($this->proxyUrl($current['url'])) ?>" target="_blank"><?= $this->escapeHtml($current['desc']) ?></a><br />
<? endforeach; ?>
</span>
<? endif; ?>
<? endif; ?>
<?=$openUrl->renderTemplate()?>
<? endif; ?>
<? endif; ?> <? endif; ?>
<? foreach ($holdings as $holding): ?> <? foreach ($holdings as $holding): ?>
<?$holdingsEmpty=false;?> <?$holdingsEmpty=false;?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment