From 502487e2bacf0aed1740537a3543258e17a9afdc Mon Sep 17 00:00:00 2001 From: Chris Catalfo Date: Tue, 2 Oct 2007 10:28:20 -0500 Subject: [PATCH] Added basic MARC21 index definitions. Signed-off-by: Chris Cormack --- misc/migration_tools/rebuild_nozebra.pl | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/misc/migration_tools/rebuild_nozebra.pl b/misc/migration_tools/rebuild_nozebra.pl index d88f9916d1..cda7dbb3b5 100755 --- a/misc/migration_tools/rebuild_nozebra.pl +++ b/misc/migration_tools/rebuild_nozebra.pl @@ -55,8 +55,20 @@ unless (%index) { 'dewey' => '676a', 'host-item' => '995a,995c',\" where variable='NoZebraIndexes'"); %index = GetNoZebraIndexes(); - } else { - # build a MARC21 default index file + } elsif (C4::Context->preference('marcflavour') eq 'MARC21') { + $dbh->do("UPDATE systempreferences SET values=\"'title' => '245a,245b', + 'author' => '100a', + 'isbn' => '020a', + 'issn' => '022a', + 'biblionumber => '999c', + 'itemtype' => '942c', + 'publisher' => '260b', + 'date' => '260c', + 'note' => '500a', + 'subject' => '600a, 650a', + 'dewey' => '082', + 'host-item' => '952a, 952c'"); + %index = GetNoZebraIndexes(); } } $|=1; -- 2.39.2