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

(-)a/C4/Search.pm (-4 / +6 lines)
Lines 1696-1704 sub searchResults { Link Here
1696
1696
1697
        }
1697
        }
1698
1698
1699
        # last check for norequest : if itemtype is notforloan, it can't be reserved either, whatever the items
1699
        # if biblio level itypes are used and itemtype is notforloan, it can't be reserved either
1700
        $can_place_holds = 0
1700
        if (!C4::Context->preference("item-level_itypes")) {
1701
          if $itemtypes{ $oldbiblio->{itemtype} }->{notforloan};
1701
            if ($itemtypes{ $oldbiblio->{itemtype} }->{notforloan}) {
1702
                $can_place_holds = 0;
1703
            }
1704
        }
1702
        $oldbiblio->{norequests} = 1 unless $can_place_holds;
1705
        $oldbiblio->{norequests} = 1 unless $can_place_holds;
1703
        $oldbiblio->{itemsplural}          = 1 if $items_count > 1;
1706
        $oldbiblio->{itemsplural}          = 1 if $items_count > 1;
1704
        $oldbiblio->{items_count}          = $items_count;
1707
        $oldbiblio->{items_count}          = $items_count;
1705
- 

Return to bug 5834