Koha-clms/misc/migration_tools
Jonathan Druart b05239fceb Bug 27245: Replace AutoCommit=0 with txn_begin in bulkmarcimport.pl
To prevent
DBD::mysql::db begin_work failed: Already in a transaction at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1588, <GEN45> line 1.

Test plan:
1 - Export more than 100 records
2 - Use bulkmarcimport (with -commit=10) to import them
    perl misc/migration_tools/bulkmarcimport.pl -b -file testbmi.xml -v -m=MARCXML --commit=10
3 - Modify a record to make the import fail (for instance having a too long
lccn)
4 - Use bulkmarcimport (with -commit=10) to import them
    perl misc/migration_tools/bulkmarcimport.pl -b -file testbmi.xml -v -m=MARCXML --commit=10
5 - Notice that the import stops but that the imported record are imported (apart from the last batch of 10)

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4a90c0b647)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f0dadd169b)
(cherry picked from commit d26a4df948)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2021-01-22 02:00:12 +01:00
..
22_to_30 Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
ifla Bug 20434: Add default authority type 2019-10-17 15:02:47 +01:00
buildCOUNTRY.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
buildEDITORS.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
buildLANG.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
build_oai_sets.pl Bug 24827: Standardise on 'UTF-8' as the encoding name 2020-04-03 18:13:57 +00:00
bulkmarcimport.pl Bug 27245: Replace AutoCommit=0 with txn_begin in bulkmarcimport.pl 2021-01-22 02:00:12 +01:00
checkNonIndexedBiblios.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
create_analytical_rel.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fix_onloan.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
import_lexile.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
koha-svc.pl Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
rebuild_zebra.pl Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
rebuild_zebra_sliced.sh Bug 13660: Exclude export phase and use existing exported MARCXML - rebuild_zebra_sliced.sh 2018-01-09 17:23:50 -03:00
remove_unused_authorities.pl Bug 21865: allow test arg alone 2020-05-05 22:04:05 +00:00
switch_marc21_series_info.pl Bug 22470: Missing the table name on misc/migration_tools/switch_marc21_series_info.pl 2020-06-22 16:29:34 +12:00
upgradeitems.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00