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

(-)a/catalogue/detail.pl (-3 / +6 lines)
Lines 335-344 foreach my $item (@items) { Link Here
335
        }
335
        }
336
    }
336
    }
337
337
338
    my $recall = Koha::Recalls->find({ itemnumber => $item->{itemnumber} });
338
    my $recall = Koha::Recalls->find({ itemnumber => $item->{itemnumber}, status => 'R' });
339
    if (defined $recall && $recall->status ne 'F' && $recall->status ne 'C'){
339
    my $waiting_recall = Koha::Recalls->find({ itemnumber => $item->{'itemnumber'}, status => 'W' });
340
    if (defined $recall){
340
        $item->{recalled} = 1;
341
        $item->{recalled} = 1;
341
        $item->{recall} = $recall;
342
        $item->{recall} = $recall;
343
    } elsif (defined $waiting_recall) {
344
        $item->{recalled} = 1;
345
        $item->{recall} = $waiting_recall;
342
    }
346
    }
343
347
344
    if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
348
    if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
345
- 

Return to bug 19532