From 207fb1c02a6e3c0daa5b082f8b73dc2296cd0ec9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 30 Jul 2009 11:56:25 +0000 Subject: [PATCH] Bugfix 2339 - Place hold button display with AllowOnShelfHolds OFF (Part 2) Added code to opac-ISBDdetail.pl to match the changes made to the template file. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl | 2 +- opac/opac-ISBDdetail.pl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl index 17acd3891a..d320f0b80c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl @@ -166,7 +166,7 @@
  • ">Place Hold
  • - +
  • ">Place Hold
  • diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl index 38896eecf6..d60f8fcb26 100755 --- a/opac/opac-ISBDdetail.pl +++ b/opac/opac-ISBDdetail.pl @@ -68,6 +68,9 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $biblionumber = $query->param('biblionumber'); +$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') ); +$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); + my $marcflavour = C4::Context->preference("marcflavour"); my $record = GetMarcBiblio($biblionumber); -- 2.39.5