Koha/misc/migration_tools
Nick Clemens e8f39a001c Bug 26337: Pass skip_merge to DelAuthority when removing unsused authorities
This script checks that an authority is not being used before deleting it.
We do not need to check biblios for the authority id as we have already verified it is unused.

TO test:
 1 - Reset db to koha test database
 2 - perl misc/migration_tools/remove_unused_authorities.pl -t
 3 - Note a number of unsued authorities
 4 - perl misc/migration_tools/remove_unused_authorities.pl -c
 5 - Note authorities are removed
 6 - Reset db
 7 - Apply patch
 8 - perl misc/migration_tools/remove_unused_authorities.pl -t
 9 - Note results are the same
10 - perl misc/migration_tools/remove_unused_authorities.pl -c
11 - Note results are the same

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-11-18 12:03:03 +01:00
..
22_to_30 Bug 21395: Fix QA errors 2020-06-29 12:37:02 +02:00
ifla Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
build_oai_sets.pl Bug 23696: take deleted biblios into account when building oai sets 2020-07-24 14:09:30 +02:00
buildCOUNTRY.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
buildEDITORS.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
buildLANG.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
bulkmarcimport.pl Bug 26231: Remove incorrect use of AddAuthority() when 001 present 2020-09-28 10:09:52 +02: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 26337: Pass skip_merge to DelAuthority when removing unsused authorities 2020-11-18 12:03:03 +01:00
switch_marc21_series_info.pl Bug 22470: Missing the table name on misc/migration_tools/switch_marc21_series_info.pl 2020-06-15 11:53:36 +02:00
upgradeitems.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00