From b0e7f7ac4f8b908fd33ae4784e9b9be993c93f93 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Wed, 3 Oct 2012 14:19:22 -0400 Subject: [PATCH] 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 --- templates_tadlskin/opac/parts/misc_util.tt2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.11.0