| 
      
            Lines 287-294
          sub AddBiblio {
      
      
        Link Here
      
     | 
  
        
          | 287 | 
                          BiblioAutoLink( $record, $frameworkcode );  | 
          287 | 
                          BiblioAutoLink( $record, $frameworkcode );  | 
        
        
          | 288 | 
                      }  | 
          288 | 
                      }  | 
        
        
          | 289 | 
           | 
          289 | 
           | 
        
          
            
              | 290 | 
                          # now add the record  | 
              290 | 
                          # now add the record, don't index while we are in the transaction though  | 
            
            
              | 291 | 
                          ModBiblioMarc( $record, $biblionumber, { skip_record_index => $skip_record_index } ) unless $defer_marc_save; | 
              291 | 
                          ModBiblioMarc( $record, $biblionumber, { skip_record_index => 1 } ) unless $defer_marc_save; | 
            
        
          | 292 | 
           | 
          292 | 
           | 
        
        
          | 293 | 
                      # update OAI-PMH sets  | 
          293 | 
                      # update OAI-PMH sets  | 
        
        
          | 294 | 
                      if(C4::Context->preference("OAI-PMH:AutoUpdateSets")) { | 
          294 | 
                      if(C4::Context->preference("OAI-PMH:AutoUpdateSets")) { | 
        
  
    | 
      
            Lines 298-304
          sub AddBiblio {
      
      
        Link Here
      
     | 
  
        
          | 298 | 
                      _after_biblio_action_hooks({ action => 'create', biblio_id => $biblionumber }); | 
          298 | 
                      _after_biblio_action_hooks({ action => 'create', biblio_id => $biblionumber }); | 
        
        
          | 299 | 
           | 
          299 | 
           | 
        
        
          | 300 | 
                      logaction( "CATALOGUING", "ADD", $biblionumber, "biblio" ) if C4::Context->preference("CataloguingLog"); | 
          300 | 
                      logaction( "CATALOGUING", "ADD", $biblionumber, "biblio" ) if C4::Context->preference("CataloguingLog"); | 
        
            
               | 
               | 
              301 | 
               | 
            
        
          | 301 | 
                  });  | 
          302 | 
                  });  | 
        
            
               | 
               | 
              303 | 
                      # We index now, after the transaction is committed  | 
            
            
              | 304 | 
                      unless ( $skip_record_index ) { | 
            
            
              | 305 | 
                          my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); | 
            
            
              | 306 | 
                          $indexer->index_records( $biblionumber, "specialUpdate", "biblioserver" );  | 
            
            
              | 307 | 
                      }  | 
            
        
          | 302 | 
              } catch { | 
          308 | 
              } catch { | 
        
        
          | 303 | 
                  warn $_;  | 
          309 | 
                  warn $_;  | 
        
        
          | 304 | 
                  ( $biblionumber, $biblioitemnumber ) = ( undef, undef );  | 
          310 | 
                  ( $biblionumber, $biblioitemnumber ) = ( undef, undef );  | 
        
            
              | 305 | 
              -   | 
               | 
               |