From 5eb80b594936485529dba8c91d439ae495223683 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Thu, 26 Dec 2013 14:56:27 -0500 Subject: [PATCH] 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 --- templates_tadlskin/opac/parts/misc_util.tt2 | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.11.0