From b6c62406183e3176f407a21c049983bc3a3ae278 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Sat, 18 Apr 2015 15:34:09 -0400 Subject: [PATCH] [SIGNED-OFF] Bug 8688: Cleaned up pointless parameter passing It does not make sense to $template->param( 'foo' => 'bar' ); when in the template file we can Koha.Preference('foo') in order to get 'bar'. Signed-off-by: Bernardo Gonzalez Kriegel --- catalogue/detail.pl | 1 - koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index b2fde1f..2cf6e22 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -91,7 +91,6 @@ if (C4::Context->preference("XSLTDetailsDisplay") ) { } $template->param( 'SpineLabelShowPrintOnBibDetails' => C4::Context->preference("SpineLabelShowPrintOnBibDetails") ); -$template->param( 'ShowRecallButton' => C4::Context->preference("ShowRecallButton") ); $template->param( ocoins => GetCOinSBiblio($record) ); # some useful variables for enhanced content; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index b592683..97a08a7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -686,7 +686,7 @@ function verify_images() { [% END %] : due [% item.datedue %] - [% IF ( ShowRecallButton ) %] + [% IF ( Koha.Preference('ShowRecallButton') ) %] [% END %] -- 1.9.1