diff --git a/module/finc/src/finc/AjaxHandler/GetResolverLinks.php b/module/finc/src/finc/AjaxHandler/GetResolverLinks.php index d4aec39151206f71f9ff9798d939b0457649cf0a..bd9534b19f301e89f128aa765bf490eb2071ba8d 100644 --- a/module/finc/src/finc/AjaxHandler/GetResolverLinks.php +++ b/module/finc/src/finc/AjaxHandler/GetResolverLinks.php @@ -128,7 +128,12 @@ class GetResolverLinks extends \VuFind\AjaxHandler\GetResolverLinks $this->resolverConfig->$resolver->resolver_cache ); } - $result = $resolverObject->fetchLinks($openUrl); + + try { + $result = $resolverObject->fetchLinks($openUrl); + } catch (\Exception $e) { + $result = []; + } // Sort the returned links into categories based on service type: $electronic = $print = $services = $unknown = []; diff --git a/themes/finc/templates/RecordTab/holdingsils.phtml b/themes/finc/templates/RecordTab/holdingsils.phtml index c18460def0fd66b222a448bbfc3fc3e8037480e9..d61bd33af00ff4ca77c2807fffb79d066cc41cee 100644 --- a/themes/finc/templates/RecordTab/holdingsils.phtml +++ b/themes/finc/templates/RecordTab/holdingsils.phtml @@ -89,7 +89,7 @@ if (!empty($holdingTitleHold)): ?> <?php /* Finc #24001 */ ?> <?php if ($openUrlActive && !empty($fallbackUrls)): ?> - <span id="urlsHideable" style="display: none"> + <span id="urlsHideable" class="hidden"> <?php foreach ($fallbackUrls as $current): ?> <?php /* finc: use external link view helper #19650 */ ?> <?= $this->externalLink($this->escapeHtmlAttr($this->proxyUrl($current['url'])), $current['desc'] ?? $current['url']) ?><br> diff --git a/themes/finc/templates/ajax/resolverLinks.phtml b/themes/finc/templates/ajax/resolverLinks.phtml index b9723e784590669687c281081f31441795267756..7385f281a362b86bc0d86d1ddf10baa65d5aa053 100644 --- a/themes/finc/templates/ajax/resolverLinks.phtml +++ b/themes/finc/templates/ajax/resolverLinks.phtml @@ -57,7 +57,13 @@ <?php /* finc-specific change #9274 - CK */ ?> <?php if ($noResolverContent): // no content to show, so tell the user?> <span id="noResolverContentMessage" class="hidden"><?=$this->resolver . ': ' . $this->translate('no_resolver_links')?></span> - <script>if ($('#urlsHideable').length) { $('#urlsHideable').show(); } else { $('#noResolverContentMessage').show(); }</script> + <script> + if ($('#urlsHideable').length > 0) { + $('#urlsHideable').removeClass('hidden').show(); + } else { + $('#noResolverContentMessage').removeClass('hidden').show(); + } + </script> <?php endif; ?> <?php /* finc-specific change #9274 - END */ ?> </div>