From: Jeff Godin Date: Thu, 26 Dec 2013 19:56:27 +0000 (-0500) Subject: Replace a bare URL in an 856 link label X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5eb80b594936485529dba8c91d439ae495223683;p=evergreen%2Ftadl.git Replace a bare URL in an 856 link label If a bare URL has survived this far as an 856 link label, replace it with something generic rather than displaying a difficult-to-wrap URL. Signed-off-by: Jeff Godin --- diff --git a/templates_tadlskin/opac/parts/misc_util.tt2 b/templates_tadlskin/opac/parts/misc_util.tt2 index d340a33a3a..625e172e94 100644 --- a/templates_tadlskin/opac/parts/misc_util.tt2 +++ b/templates_tadlskin/opac/parts/misc_util.tt2 @@ -205,6 +205,9 @@ res.href = uri.getAttribute('href'); res.link = uri.getAttribute('label'); res.note = uri.getAttribute('use_restriction'); + IF res.link.match('^http'); + res.link = 'Connect to this resource online'; + END; args.uris.push(res); IF res.href.match('^http://via.tadl.org/'); args.ezproxy = 1;