From cd62a0168a2463d864aac03313faa8de20f9501d Mon Sep 17 00:00:00 2001 From: Admin User Koha Date: Wed, 9 Jan 2013 16:39:04 +0100 Subject: [PATCH] bz5635 : followup to move dbh init --- misc/migration_tools/bulkmarcimport.pl | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index b947060..e0f4cc8 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -84,7 +84,7 @@ if ($version || ($input_marc_file eq '')) { pod2usage( -verbose => 2 ); exit; } - +my $dbh = C4::Context->dbh; my $heading_fields=get_heading_fields(); if (defined $idmapfl) { @@ -96,8 +96,6 @@ if ((not defined $sourcesubfield) && (not defined $sourcetag)){ $sourcesubfield="a"; } -my $dbh = C4::Context->dbh; - # save the CataloguingLog property : we don't want to log a bulkmarcimport. It will slow the import & # will create problems in the action_logs table, that can't handle more than 1 entry per second per user. my $CataloguingLog = C4::Context->preference('CataloguingLog'); -- 1.7.2.5