| 
      
            Lines 302-309
          sub SearchAuthorities {
      
      
        Link Here
      
     | 
  
        
          | 302 | 
                          }  | 
          302 | 
                          }  | 
        
        
          | 303 | 
                      }  | 
          303 | 
                      }  | 
        
        
          | 304 | 
           | 
          304 | 
           | 
        
          
            
              | 305 | 
                          my $thisauthtypecode = Koha::Authorities->find($authid)->authtypecode;  | 
              305 | 
                          my ( $thisauthtype, $thisauthtypecode );  | 
            
            
              | 306 | 
                          my $thisauthtype = Koha::Authority::Types->find($thisauthtypecode);  | 
              306 | 
                          if ( my $authority = Koha::Authorities->find($authid) ) { | 
            
            
               | 
               | 
              307 | 
                              $thisauthtypecode = $authority->authtypecode;  | 
            
            
              | 308 | 
                              $thisauthtype = Koha::Authority::Types->find($thisauthtypecode);  | 
            
            
              | 309 | 
                          }  | 
            
        
          | 307 | 
                      unless (defined $thisauthtype) { | 
          310 | 
                      unless (defined $thisauthtype) { | 
        
        
          | 308 | 
                          $thisauthtypecode = $authtypecode;  | 
          311 | 
                          $thisauthtypecode = $authtypecode;  | 
        
        
          | 309 | 
                          $thisauthtype = Koha::Authority::Types->find($thisauthtypecode);  | 
          312 | 
                          $thisauthtype = Koha::Authority::Types->find($thisauthtypecode);  | 
        
            
              | 310 | 
              -   | 
               | 
               |