Browse Source
In order to make matching rules more useful for MARC21 authorities, this patch adds special indexes on previous see-from headings and LCCN. This patch does not change UNIMARC authority configuration in any way. Also modifies the Koha schema in preparation for adding authority import and matching to the Staging tools. To install: 1. Run installer/data/mysql/atomicupdate/importauthorities.pl 2. Update the following four files in your koha-dev: etc/zebradb/authorities/etc/bib1.att etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl 3. Reindex your authorities: misc/migration_tools/rebuild_zebra.pl -a -r -v NOTE TO RM: this patch adds an atomicupdate file that needs to be incorporated into updatedatabase.pl if bug 7167 is not pushed. http://bugs.koha-community.org/show_bug.cgi?id=2060 Signed-off-by: Elliott Davis <elliott@bywatersolutions.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Rebased on master 1 August 2012 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Rebased on master 11 September 20123.10.x
Jared Camins-Esakov
12 years ago
committed by
Paul Poulain
6 changed files with 122 additions and 1 deletions
@ -0,0 +1,26 @@ |
|||
#!/usr/bin/perl |
|||
|
|||
use strict; |
|||
use warnings; |
|||
use C4::Context; |
|||
my $dbh = C4::Context->dbh; |
|||
|
|||
$dbh->do( |
|||
q|CREATE TABLE `import_auths` ( |
|||
import_record_id int(11) NOT NULL, |
|||
matched_authid int(11) default NULL, |
|||
control_number varchar(25) default NULL, |
|||
authorized_heading varchar(128) default NULL, |
|||
original_source varchar(25) default NULL, |
|||
CONSTRAINT import_auths_ibfk_1 FOREIGN KEY (import_record_id) |
|||
REFERENCES import_records (import_record_id) ON DELETE CASCADE ON UPDATE CASCADE, |
|||
KEY matched_authid (matched_authid) |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;| |
|||
); |
|||
$dbh->do("ALTER TABLE import_batches |
|||
CHANGE COLUMN num_biblios num_records int(11) NOT NULL default 0, |
|||
ADD COLUMN record_type enum('biblio', 'auth', 'holdings') NOT NULL default 'biblio'"); |
|||
$dbh->do("UPDATE import_batches SET record_type='auth' WHERE import_batch_id IN |
|||
(SELECT import_batch_id FROM import_records WHERE record_type='auth')"); |
|||
|
|||
print "Upgrade done (Added support for staging authorities)\n"; |
Loading…
Reference in new issue