Bugfix 2339 - Place hold button display with AllowOnShelfHolds OFF (Part 2)
authorKyle M Hall <kyle.m.hall@gmail.com>
Thu, 30 Jul 2009 11:56:25 +0000 (11:56 +0000)
committerGalen Charlton <galen.charlton@liblime.com>
Thu, 30 Jul 2009 15:37:04 +0000 (11:37 -0400)
Added code to opac-ISBDdetail.pl to match the changes made to the template file.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl
opac/opac-ISBDdetail.pl

index 17acd38..d320f0b 100644 (file)
                        <!-- TMPL_IF NAME="AllowOnShelfHolds" -->
                                <li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a></li>
                        <!-- TMPL_ELSE -->
-                               <!-- TMPL_IF NAME="itemsissued" -->
+                               <!-- TMPL_IF NAME="ItemsIssued" -->
                                        <li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a></li>
                                <!-- /TMPL_IF -->
                        <!-- /TMPL_IF -->
index 38896ee..d60f8fc 100755 (executable)
@@ -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);