View | Details | Raw Unified | Return to bug 4319
Collapse All | Expand All

(-)a/opac/opac-ISBDdetail.pl (-3 / +4 lines)
Lines 79-86 if(my $cart_list = $query->cookie("bib_list")){ Link Here
79
    }
79
    }
80
}
80
}
81
81
82
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
83
84
my $marcflavour      = C4::Context->preference("marcflavour");
82
my $marcflavour      = C4::Context->preference("marcflavour");
85
83
86
my @items = GetItemsInfo($biblionumber);
84
my @items = GetItemsInfo($biblionumber);
Lines 183-191 for my $itm (@items) { Link Here
183
      unless $allow_onshelf_holds;
181
      unless $allow_onshelf_holds;
184
}
182
}
185
183
184
if( $allow_onshelf_holds || CountItemsIssued($biblionumber) || $biblio->hasItemswaitingOrInTransit ) {
185
    $template->param( ReservableItems => 1 );
186
}
187
186
$template->param(
188
$template->param(
187
    RequestOnOpac       => C4::Context->preference("RequestOnOpac"),
189
    RequestOnOpac       => C4::Context->preference("RequestOnOpac"),
188
    AllowOnShelfHolds   => $allow_onshelf_holds,
189
    norequests   => $norequests,
190
    norequests   => $norequests,
190
    ISBD         => $res,
191
    ISBD         => $res,
191
    biblio       => $biblio,
192
    biblio       => $biblio,
(-)a/opac/opac-MARCdetail.pl (-2 / +3 lines)
Lines 136-143 for my $itm (@all_items) { Link Here
136
    last if $allow_onshelf_holds;
136
    last if $allow_onshelf_holds;
137
}
137
}
138
138
139
$template->param( 'AllowOnShelfHolds' => $allow_onshelf_holds );
139
if( $allow_onshelf_holds || CountItemsIssued($biblionumber) || $biblio->hasItemswaitingOrInTransit ) {
140
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
140
    $template->param( ReservableItems => 1 );
141
}
141
142
142
# adding the $RequestOnOpac param
143
# adding the $RequestOnOpac param
143
my $RequestOnOpac;
144
my $RequestOnOpac;
(-)a/opac/opac-detail.pl (-4 / +3 lines)
Lines 719-727 if ( not $viewallitems and @items > $max_items_to_display ) { Link Here
719
  }
719
  }
720
}
720
}
721
721
722
my $itemsWaitingOrInTransit = Koha::Biblios->find($biblionumber)->hasItemswaitingOrInTransit || 0;
722
if( $allow_onshelf_holds || CountItemsIssued($biblionumber) || $biblio->hasItemswaitingOrInTransit ) {
723
my $itemsIssued = CountItemsIssued( $biblionumber );
723
    $template->param( ReservableItems => 1 );
724
$template->param( 'ReservableItems' => $itemsWaitingOrInTransit || $itemsIssued || $allow_onshelf_holds );
724
}
725
725
726
# Display only one tab if one items list is empty
726
# Display only one tab if one items list is empty
727
if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) {
727
if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) {
728
- 

Return to bug 4319