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 <galen.charlton@liblime.com>
This commit is contained in:
parent
66d9fe254f
commit
207fb1c02a
2 changed files with 4 additions and 1 deletions
|
@ -166,7 +166,7 @@
|
|||
<!-- 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 -->
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue