| Lines 74-80
          use Koha::Items;
      
      
        Link Here | 
        
          | 74 | sub new { | 74 | sub new { | 
        
          | 75 |     my ($class, $item_id) = @_; | 75 |     my ($class, $item_id) = @_; | 
        
          | 76 |     my $type = ref($class) || $class; | 76 |     my $type = ref($class) || $class; | 
          
            
              | 77 |     my $item = Koha::Items->find( { barcode => $item_id } ); | 77 |     my $item = Koha::Items->find( { barcode => barcodedecode( $item_id ) } ); | 
        
          | 78 |     unless ( $item ) { | 78 |     unless ( $item ) { | 
        
          | 79 |         syslog("LOG_DEBUG", "new ILS::Item('%s'): not found", $item_id); | 79 |         syslog("LOG_DEBUG", "new ILS::Item('%s'): not found", $item_id); | 
        
          | 80 |         warn "new ILS::Item($item_id) : No item '$item_id'."; | 80 |         warn "new ILS::Item($item_id) : No item '$item_id'."; | 
            
              | 81 | -  |  |  |