| 
      
            Lines 269-278
          if ( $query->param('place_reserve') ) {
      
      
        Link Here
      
     | 
  
        
          | 269 | 
           | 
          269 | 
           | 
        
        
          | 270 | 
                  my $rank = $biblioData->{rank}; | 
          270 | 
                  my $rank = $biblioData->{rank}; | 
        
        
          | 271 | 
                  if ( $itemNum ne '' ) { | 
          271 | 
                  if ( $itemNum ne '' ) { | 
        
          
            
              | 272 | 
                          $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum, $branch )->{status} eq 'OK'; | 
              272 | 
                          $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum )->{status} eq 'OK'; | 
            
        
          | 273 | 
                  }  | 
          273 | 
                  }  | 
        
        
          | 274 | 
                  else { | 
          274 | 
                  else { | 
        
          
            
              | 275 | 
                          $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum, $branch )->{status} eq 'OK'; | 
              275 | 
                          $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum )->{status} eq 'OK'; | 
            
        
          | 276 | 
           | 
          276 | 
           | 
        
        
          | 277 | 
                      # Inserts a null into the 'itemnumber' field of 'reserves' table.  | 
          277 | 
                      # Inserts a null into the 'itemnumber' field of 'reserves' table.  | 
        
        
          | 278 | 
                      $itemNum = undef;  | 
          278 | 
                      $itemNum = undef;  | 
        
  
    | 
      
            Lines 525-531
          foreach my $biblioNum (@biblionumbers) {
      
      
        Link Here
      
     | 
  
        
          | 525 | 
                  my $policy_holdallowed = !$itemLoopIter->{already_reserved}; | 
          525 | 
                  my $policy_holdallowed = !$itemLoopIter->{already_reserved}; | 
        
        
          | 526 | 
                  $policy_holdallowed &&=  | 
          526 | 
                  $policy_holdallowed &&=  | 
        
        
          | 527 | 
                      IsAvailableForItemLevelRequest($itemInfo,$patron_unblessed) &&  | 
          527 | 
                      IsAvailableForItemLevelRequest($itemInfo,$patron_unblessed) &&  | 
        
          
            
              | 528 | 
                          CanItemBeReserved($borrowernumber,$itemNum, $branch)->{status} eq 'OK'; | 
              528 | 
                          CanItemBeReserved( $borrowernumber, $itemNum )->{status} eq 'OK'; | 
            
        
          | 529 | 
           | 
          529 | 
           | 
        
        
          | 530 | 
                  if ($policy_holdallowed) { | 
          530 | 
                  if ($policy_holdallowed) { | 
        
        
          | 531 | 
                      my $opac_hold_policy = Koha::IssuingRules->get_opacitemholds_policy( { item => $item, patron => $patron } ); | 
          531 | 
                      my $opac_hold_policy = Koha::IssuingRules->get_opacitemholds_policy( { item => $item, patron => $patron } ); | 
        
  
    | 
      
            Lines 585-591
          foreach my $biblioNum (@biblionumbers) {
      
      
        Link Here
      
     | 
  
        
          | 585 | 
                  }  | 
          585 | 
                  }  | 
        
        
          | 586 | 
              }  | 
          586 | 
              }  | 
        
        
          | 587 | 
           | 
          587 | 
           | 
        
          
            
              | 588 | 
                  $biblioLoopIter{holdable} &&= CanBookBeReserved($borrowernumber,$biblioNum,$branch)->{status} eq 'OK'; | 
              588 | 
                  $biblioLoopIter{holdable} &&= CanBookBeReserved( $borrowernumber, $biblioNum )->{status} eq 'OK'; | 
            
        
          | 589 | 
           | 
          589 | 
           | 
        
        
          | 590 | 
              # For multiple holds per record, if a patron has previously placed a hold,  | 
          590 | 
              # For multiple holds per record, if a patron has previously placed a hold,  | 
        
        
          | 591 | 
              # the patron can only place more holds of the same type. That is, if the  | 
          591 | 
              # the patron can only place more holds of the same type. That is, if the  | 
        
            
              | 592 | 
              -   | 
               | 
               |