From bcdf0d18670f80d57f6cdb7b50259ce74c4faf25 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 29 Aug 2011 13:47:16 -0400 Subject: [PATCH] Tpac: config option for record detail jacket size Signed-off-by: Bill Erickson --- Open-ILS/src/templates/default/opac/parts/config.tt2 | 11 +++++++++++ Open-ILS/src/templates/default/opac/parts/record/summary.tt2 | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/default/opac/parts/config.tt2 b/Open-ILS/src/templates/default/opac/parts/config.tt2 index a792838227..ab61c232e6 100644 --- a/Open-ILS/src/templates/default/opac/parts/config.tt2 +++ b/Open-ILS/src/templates/default/opac/parts/config.tt2 @@ -41,4 +41,15 @@ openurl.baseurl = 'http://sfx.example.com/instance'; google_analytics.enabled = 'false'; google_analytics.code = 'UA-9999999-99'; +############################################################################## +# Misc. UI Settings +############################################################################## + +############################################################################## +# Size of the jacket image to display on the record detail summary. +# Sizes vary depending on added content provider. +# Options are "small", "medium", and "large" +record.summary.jacket_size = 'medium'; + + %] diff --git a/Open-ILS/src/templates/default/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/default/opac/parts/record/summary.tt2 index 4fed6d024d..e2408d1a77 100644 --- a/Open-ILS/src/templates/default/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/default/opac/parts/record/summary.tt2 @@ -18,7 +18,7 @@ [% ident = attrs.isbn_clean || attrs.upc; IF ident; %] [% l('Image of item') %] + src='[% ctx.media_prefix %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/[% ident | uri %]' /> [% END %]
-- 2.11.0