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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc (-1 / +1 lines)
Lines 49-55 Link Here
49
    to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
49
    to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
50
[% END %]
50
[% END %]
51
51
52
[% IF NOT( item.isa('Koha::Item') ) AND item.waiting %] [%# Not sure where does come from this waiting flag %]
52
[% IF (item.isa('Koha::Item') AND item.holds.waiting.count) OR (NOT item.isa('Koha::Item') AND item.waiting) %]
53
    [% SET itemavailable = 0 %]
53
    [% SET itemavailable = 0 %]
54
    <span class="item-status onhold">On hold</span>
54
    <span class="item-status onhold">On hold</span>
55
[% END %]
55
[% END %]
(-)a/opac/opac-basket.pl (-1 lines)
Lines 98-104 foreach my $biblionumber ( @bibs ) { Link Here
98
    foreach my $item (@$items) {
98
    foreach my $item (@$items) {
99
        my $reserve_status = C4::Reserves::GetReserveStatus($item->{itemnumber});
99
        my $reserve_status = C4::Reserves::GetReserveStatus($item->{itemnumber});
100
        if( $reserve_status eq "Waiting"){ $item->{'waiting'} = 1; }
100
        if( $reserve_status eq "Waiting"){ $item->{'waiting'} = 1; }
101
        if( $reserve_status eq "Reserved"){ $item->{'onhold'} = 1; }
102
    }
101
    }
103
102
104
    my $hasauthors = 0;
103
    my $hasauthors = 0;
(-)a/opac/opac-detail.pl (-6 lines)
Lines 729-739 else { Link Here
729
        $item_info->{checkout} = $item->checkout;
729
        $item_info->{checkout} = $item->checkout;
730
        $item_info->{object} = $item;
730
        $item_info->{object} = $item;
731
731
732
        my $reserve_status =
733
          C4::Reserves::GetReserveStatus( $item->itemnumber );
734
        if ( $reserve_status eq "Waiting"  ) { $item_info->{'waiting'} = 1; }
735
        if ( $reserve_status eq "Reserved" ) { $item_info->{'onhold'}  = 1; }
736
737
        my ( $transfertwhen, $transfertfrom, $transfertto ) =
732
        my ( $transfertwhen, $transfertfrom, $transfertto ) =
738
          GetTransfers( $item->itemnumber );
733
          GetTransfers( $item->itemnumber );
739
        if ( defined($transfertwhen) && $transfertwhen ne '' ) {
734
        if ( defined($transfertwhen) && $transfertwhen ne '' ) {
740
- 

Return to bug 31313