From 3849e1dc8f6798c47db5da0437d9354b2d4133bf Mon Sep 17 00:00:00 2001 From: Gregor Gawol <gawol@ub.uni-leipzig.de> Date: Wed, 1 Jul 2020 13:24:20 +0200 Subject: [PATCH] refs #16196 [fid_adlr] issn online-contents adlr.link * fixed doi --- themes/fid_adlr/templates/get-it-box/links.phtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/fid_adlr/templates/get-it-box/links.phtml b/themes/fid_adlr/templates/get-it-box/links.phtml index 68f2d11784e..a6409e93e31 100644 --- a/themes/fid_adlr/templates/get-it-box/links.phtml +++ b/themes/fid_adlr/templates/get-it-box/links.phtml @@ -32,7 +32,9 @@ <span id="urlsHideable" style="display: none"> <?php foreach ($fallbackUrls as $current): ?> <?php if (preg_match_all('/doi/', $current['url'])): ?> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" target="_blank">DOI: <?=$doiName?></a> + <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" target="_blank"> + DOI: <?=!empty($doiName) ? $doiName : $current['url'] ?> + </a> <?php endif; ?> <?php endforeach; ?> </span> -- GitLab