From 79b12445f11c18ef18a94ca6f66b81bdd1f93987 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Thu, 10 Dec 2009 14:52:12 +0100 Subject: [PATCH] MT2432 : Do not show "place hold" link when there's no items --- koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl | 2 ++ opac/opac-MARCdetail.pl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl index 63501ae7fd..30f2c96ed0 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl @@ -23,7 +23,9 @@ +
  • ">Place Hold
  • +
  • ">Place Hold
  • diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl index 51d1579be1..9826c24d3d 100755 --- a/opac/opac-MARCdetail.pl +++ b/opac/opac-MARCdetail.pl @@ -48,6 +48,7 @@ use MARC::Record; use C4::Biblio; use C4::Acquisition; use C4::Koha; +use C4::Items; # GetItemsCount my $query = new CGI; @@ -76,6 +77,7 @@ $template->param( $template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') ); $template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); +$template->param( 'ItemsCount' => GetItemsCount( $biblionumber ) ); # adding the $RequestOnOpac param my $RequestOnOpac; -- 2.39.5