From 0fd2f2382cdd8e88d1e1425603ef3b8f701d0fcc Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Mon, 14 Aug 2017 22:13:31 -0400 Subject: [PATCH] LP#1710747: Absolute URL for Open Graph image property The Open Graph image property requires the full absolute URL rather than the relative URL that was previously used on the record summary page. Test Plan: Pre-patch - Visit a record summary page in the catalog. View the source of the page. In the head section, find the og:image meta property. The content will display a relative URL to the record's book jacket cover image. Post-patch - When viewing the source of the page, og:image will display the full URL. Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/opac/parts/record/summary.tt2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 42835fd876..57a312c22a 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -1,8 +1,9 @@ -[% PROCESS "opac/parts/misc_util.tt2"; +[%- PROCESS "opac/parts/misc_util.tt2"; USE ResolverResolver; - ctx.page_title = attrs.title | html - ctx.metalinks.push(''); -%] + ctx.page_title = attrs.title | html; + full_image_path = ctx.proto _ '://' _ ctx.hostname _ '/opac/extras/ac/jacket/' _ record.summary.jacket_size _ '/r/' _ ctx.bre_id; + ctx.metalinks.push(''); +-%] -- 2.11.0