From 38250a95535fe065993c3cc131358ffa64b0d7a8 Mon Sep 17 00:00:00 2001 From: Alexander Purr <purr@ub.uni-leipzig.de> Date: Mon, 6 Dec 2021 12:15:12 +0100 Subject: [PATCH] refs #21012 [finc] use external link view helper correctly * escape url manually (coming from VuFind) * translate label again (was falsely removed on previous commits) * enable automatic label escaping by removing 4th parameter --- 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 ed99f581cf8..392dd55a860 100644 --- a/themes/finc/templates/RecordTab/holdingsils.phtml +++ b/themes/finc/templates/RecordTab/holdingsils.phtml @@ -179,7 +179,7 @@ if (!empty($holdingTitleHold)): ?> <h2><?=$this->transEsc("external_access")?></h2> <?php if (!empty($extUrls)): ?> <?php foreach ($extUrls as $current): ?> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>"><?=$this->translate($current['desc'])?></a> + <?=$this->externalLink($this->escapeHtmlAttr($this->proxyUrl($current['url'])), $this->translate($current['desc']))?> <br/> <?php endforeach; ?> <?php endif; ?> -- GitLab