From 8a6760dcb898c98622dbe1c2dd9cbcf413f8bd15 Mon Sep 17 00:00:00 2001 From: Alexander Purr <purr@ub.uni-leipzig.de> Date: Tue, 16 Nov 2021 14:59:27 +0100 Subject: [PATCH] refs #20870 [finc] ajax resolver links now rendered as external links --- themes/finc/templates/ajax/resolverLinks.phtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/themes/finc/templates/ajax/resolverLinks.phtml b/themes/finc/templates/ajax/resolverLinks.phtml index cdc5ac85fac..4b2e0a9ed2b 100644 --- a/themes/finc/templates/ajax/resolverLinks.phtml +++ b/themes/finc/templates/ajax/resolverLinks.phtml @@ -20,7 +20,14 @@ <span class="last"></span> </div> <?php /* finc-specific change #7986 - END */ ?> - <a href="<?=$this->escapeHtmlAttr($link['href'])?>" title="<?=isset($link['service_type'])?$this->escapeHtmlAttr($link['service_type']):''?>"<?=!empty($link['access'])?' class="access-'.$link['access'].'"':''?>><?=isset($link['title'])?$this->escapeHtml($link['title']):''?></a> <br /> + <?= $this->externalLink( + $this->escapeHtmlAttr($link['href']), + $link['title'] ?? '', + [ + 'title' => $link['service_type'] ?? '', + 'class' => !empty($link['access']) ? 'access-' . $link['access'] : '' + ] + ) ?> <br /> <?php /* finc-specific change #5334 - CK */ ?> <small> <?= isset($link['coverage']) ? $this->escapeHtml($link['coverage']) : '' ?> -- GitLab