| 
      
            Lines 2949-2955
          sub CanBookBeRenewed {
      
      
        Link Here
      
     | 
  
        
          | 2949 | 
           )  | 
          2949 | 
           )  | 
        
        
          | 2950 | 
              { | 
          2950 | 
              { | 
        
        
          | 2951 | 
                  my $biblio = Koha::Biblios->find($item->biblionumber);  | 
          2951 | 
                  my $biblio = Koha::Biblios->find($item->biblionumber);  | 
        
          
            
              | 2952 | 
                      my @possible_holds = $biblio->current_holds->unfilled->search({non_priority => 0})->as_list; | 
              2952 | 
                      my @possible_holds = $biblio->current_holds->unfilled->search(  | 
            
            
               | 
               | 
              2953 | 
                          {non_priority => 0}, | 
            
            
              | 2954 | 
                          { prefetch => 'patron' } | 
            
            
              | 2955 | 
                      )->as_list;  | 
            
        
          | 2953 | 
           | 
          2956 | 
           | 
        
        
          | 2954 | 
                  # Get all other items that could possibly fill reserves  | 
          2957 | 
                  # Get all other items that could possibly fill reserves  | 
        
        
          | 2955 | 
                  # FIXME We could join reserves (or more tables) here to eliminate some checks later  | 
          2958 | 
                  # FIXME We could join reserves (or more tables) here to eliminate some checks later  | 
        
            
              | 2956 | 
              -   | 
               | 
               |