Koha-clms/misc/migration_tools
David Cook be9eeef3c9 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>
(cherry picked from commit 276602aadb)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
2020-10-20 14:06:43 +13: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 26231: Remove incorrect use of AddAuthority() when 001 present 2020-10-20 14:06:43 +13: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