(bug #4051) add due date in overdue.tmpl
[koha.git] / opac / opac-MARCdetail.pl
index a372826..a0d2e90 100755 (executable)
@@ -48,6 +48,7 @@ use MARC::Record;
 use C4::Biblio;
 use C4::Acquisition;
 use C4::Koha;
+use C4::Items; # GetItemsCount
 
 my $query = new CGI;
 
@@ -74,6 +75,11 @@ $template->param(
     bibliotitle => $biblio->{title},
 );
 
+$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') );
+$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
+$template->param( 'ItemsCount' => GetItemsCount( $biblionumber ) );
+$template->param(C4::Search::enabled_opac_search_views);
+
 # adding the $RequestOnOpac param
 my $RequestOnOpac;
 if (C4::Context->preference("RequestOnOpac")) {