View | Details | Raw Unified | Return to bug 26684
Collapse All | Expand All

(-)a/C4/AuthoritiesMarc.pm (-1 / +1 lines)
Lines 628-634 sub AddAuthority { Link Here
628
    $record->delete_field( $record->field('001') );
628
    $record->delete_field( $record->field('001') );
629
    $record->insert_fields_ordered( MARC::Field->new( '001', $authid ) );
629
    $record->insert_fields_ordered( MARC::Field->new( '001', $authid ) );
630
    # Update
630
    # Update
631
    $dbh->do( "UPDATE auth_header SET authtypecode=?, marc=?, marcxml=? WHERE authid=?", undef, $authtypecode, $record->as_usmarc, $record->as_xml_record($format), $authid ) or die $DBI::errstr;
631
    $dbh->do( "UPDATE auth_header SET authtypecode=?, marcxml=? WHERE authid=?", undef, $authtypecode, $record->as_xml_record($format), $authid ) or die $DBI::errstr;
632
    my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::AUTHORITIES_INDEX });
632
    my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::AUTHORITIES_INDEX });
633
    $indexer->index_records( $authid, "specialUpdate", "authorityserver", $record );
633
    $indexer->index_records( $authid, "specialUpdate", "authorityserver", $record );
634
634
(-)a/installer/data/mysql/kohastructure.sql (-1 lines)
Lines 27-33 CREATE TABLE `auth_header` ( Link Here
27
  `modification_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
27
  `modification_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
28
  `origincode` varchar(20) default NULL,
28
  `origincode` varchar(20) default NULL,
29
  `authtrees` LONGTEXT,
29
  `authtrees` LONGTEXT,
30
  `marc` blob,
31
  `linkid` bigint(20) default NULL,
30
  `linkid` bigint(20) default NULL,
32
  `marcxml` LONGTEXT NOT NULL,
31
  `marcxml` LONGTEXT NOT NULL,
33
  PRIMARY KEY  (`authid`),
32
  PRIMARY KEY  (`authid`),
(-)a/t/db_dependent/Linker_FirstMatch.t (-2 lines)
Lines 82-88 sub run_tests { Link Here
82
        }
82
        }
83
    );
83
    );
84
    $auth_header_record->marcxml($fake_xml);
84
    $auth_header_record->marcxml($fake_xml);
85
    $auth_header_record->marc($fake_marc);
86
    $auth_header_record->update;
85
    $auth_header_record->update;
87
86
88
    # Find a particular series field.
87
    # Find a particular series field.
89
- 

Return to bug 26684