From 86c82d0aaa45def7d8d95bb0005e2cf6116eff35 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 27 Apr 2010 14:13:04 -0400 Subject: [PATCH] Fix to enable Amazon cover images in the staff client. Since this fix enables the previously-missing variable 'AmazonEnabled' in Auth.pm, this will also enable other Amazon content in the staff client like Product Descriptions and Amazon Similar Items (See Bug 3863) Signed-off-by: Galen Charlton --- C4/Auth.pm | 2 ++ .../prog/en/modules/catalogue/results.tmpl | 11 +++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 94a05fbdb0..387a352985 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -354,6 +354,8 @@ sub get_template_and_user { if ( $in->{'type'} eq "intranet" ) { $template->param( AmazonContent => C4::Context->preference("AmazonContent"), + AmazonCoverImages => C4::Context->preference("AmazonCoverImages"), + AmazonEnabled => C4::Context->preference("AmazonEnabled"), AmazonSimilarItems => C4::Context->preference("AmazonSimilarItems"), AutoLocation => C4::Context->preference("AutoLocation"), "BiblioDefaultView".C4::Context->preference("IntranetBiblioDefaultView") => 1, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl index b81970a3ba..b9b6a7dd14 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -371,23 +371,22 @@ function GetZ3950Terms(){ - - + - + - + -- 2.39.2
   Results Location
"> - - http://images.amazon.com/images/P/.01.TZZZZZZZ.jpghttp://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="image" class="thumbnail" /> + + http://images.amazon.com/images/P/.01.TZZZZZZZ.jpghttp://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="image" class="thumbnail" /> " name="biblionumber" value="" style="display:none" />