From: Jeff Godin Date: Wed, 3 Oct 2012 18:19:22 +0000 (-0400) Subject: Be less strict when matching AVOD URLs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b0e7f7ac4f8b908fd33ae4784e9b9be993c93f93;p=evergreen%2Ftadl.git Be less strict when matching AVOD URLs Some of our early AVOD records have two EZproxy prefixes. This works, but the URLs look different. Rely on the previous "is this going through EZproxy?" check, then look for an AVOD url contained within. Signed-off-by: Jeff Godin --- diff --git a/templates_tadlskin/opac/parts/misc_util.tt2 b/templates_tadlskin/opac/parts/misc_util.tt2 index f642f3db85..a0b3c993d3 100644 --- a/templates_tadlskin/opac/parts/misc_util.tt2 +++ b/templates_tadlskin/opac/parts/misc_util.tt2 @@ -202,9 +202,9 @@ args.uris.push(res); IF res.href.match('^http://via.tadl.org/'); args.ezproxy = 1; - END; - IF (avod_xtid = res.href.match('^http://via.tadl.org/login\?url=http://avod.films.com/PortalPlaylists.aspx\?aid=\d+&xtid=(\d+)')); - args.cover_url = 'https://secure.films.com/Common/FMGimages/' _ avod_xtid.0 _ '_full.jpg'; + IF (avod_xtid = res.href.match('url=http://avod.films.com/PortalPlaylists.aspx\?aid=\d+&xtid=(\d+)')); + args.cover_url = 'https://secure.films.com/Common/FMGimages/' _ avod_xtid.0 _ '_full.jpg'; + END; END; END; NEXT;