Koha-clms/misc/migration_tools
David Cook 276602aadb Bug 26231: Remove incorrect use of AddAuthority() when 001 present
This patch removes the use of AddAuthority with a non-empty
authid argument, since that triggers an update rather than an insert.

In practice, the update also fails, but the error isn't raised,
as the database connection doesn't have RaiseError set.

Test plan:
1) Do not apply patch
2) Try to bulkmarcimport an authority file with a 001
3) Observe that the script reports success but no authority is added
4) Apply the path
5) Try to bulkmarcimport an authority file with a 001
6) Observe that the script reports success and the authority is added

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 9622561636)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-10-16 16:09:13 +00:00
..
22_to_30 Bug 21395: Fix QA errors 2020-07-13 16:45:01 +00:00
ifla Bug 20434: Add default authority type 2019-10-17 15:02:47 +01:00
buildCOUNTRY.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
buildEDITORS.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
buildLANG.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
build_oai_sets.pl Bug 23696: take deleted biblios into account when building oai sets 2020-07-31 20:08:04 +00:00
bulkmarcimport.pl Bug 26231: Remove incorrect use of AddAuthority() when 001 present 2020-10-16 16:09:13 +00: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 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
import_lexile.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +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 23084: Replace grep {^$var$} with grep {$_ eq $var} 2020-02-17 10:44:45 +00: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 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
switch_marc21_series_info.pl Bug 22470: Missing the table name on misc/migration_tools/switch_marc21_series_info.pl 2020-06-17 23:13:49 +00:00
upgradeitems.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00