Koha/misc
David Cook 9622561636 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>
2020-09-28 10:09:52 +02:00
..
admin Bug 23816: (follow-up) Fix many things 2020-09-09 15:39:52 +02:00
bin
cronjobs Bug 26420: Use translated notices for overdue_notices.pl 2020-09-18 10:38:05 +02:00
devel Bug 24591: Add --help option to misc/devel/get-prepared-letter.pl 2020-08-07 16:54:40 +02:00
interface_customization Bug 23148: Replace Bridge icons with transparent PNG files 2020-07-20 16:16:37 +02:00
load_testing Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
maintenance Bug 26407: fix query in 'title exists' in search_for_data_inconsistencies.pl 2020-09-18 10:37:56 +02:00
migration_tools Bug 26231: Remove incorrect use of AddAuthority() when 001 present 2020-09-28 10:09:52 +02:00
release_notes
search_tools
translator Bug 25922: Fix typo 'arial-label' -> 'aria-label' 2020-07-20 17:45:31 +02:00
add_date_fields_to_marc_records.pl
batchCompareMARCvsFrameworks.pl
batchdeletebiblios.pl
batchDeleteUnusedSubfields.pl
batchImportMARCWithBiblionumbers.pl
batchRebuildBiblioTables.pl
batchRebuildItemsTables.pl
batchRepairMissingBiblionumbers.pl
check_sysprefs.pl
commit_file.pl
export_borrowers.pl
export_records.pl Bug 26175: Remove warn if undefined barcode in misc/export_records.pl 2020-08-26 15:21:41 +02:00
exportauth.pl
import_patrons.pl
koha-install-log
kohalib.pl
link_bibs_to_authorities.pl
load_yaml.pl
mod_zebraqueue.pl
perlmodule_ls.pl
perlmodule_rm.pl
recreateIssueStatistics.pl
sax_parser_print.pl
sax_parser_test.pl
sip_cli_emulator.pl
stage_file.pl
z3950_responder.pl