Koha-clms/misc/migration_tools
Fridolin Somers fc4cffe1f0
Bug 21865: ES compatiblity of remove_unused_authorities.pl
The script misc/migration_tools/remove_unused_authorities.pl directly checks if Zebra search is OK.

This patch changes so that this test is only if Zebra is the search engine.
It also adds a test on the search off any authority number indexed (index 'an').
With Zebra its : an,alwaysmatches=''
With ES its : an:*
This test ensure that biblios records are indexed and that not all autorities will be deleted.

Test plan:
1) On a catalog create a new authority
2) Use Zebra in systempreference SearchEngine
3) Stop Zebra server
4) Run misc/migration_tools/remove_unused_authorities.pl -c
5) The script does nothing and says :
   Zebra server seems not to be available. This script needs Zebra runs.
6) Restart Zebra server
7) Delete biblio index base
8) Run misc/migration_tools/remove_unused_authorities.pl -c
9) The script does nothing and says :
   Searching authority number in biblio records seems not to be available : an,alwaysmatches=''
10) Use ElasticSearch in systempreference SearchEngine
11) Delete biblio index base
12) Run misc/migration_tools/remove_unused_authorities.pl -c
13) The script does nothing and says :
    Searching authority number in biblio records seems not to be available : an:*

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-14 16:54:10 +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-03-16 14:45:39 +00:00
bulkmarcimport.pl Bug 15214: bulkmarcimport should log if an authority has been updated 2020-03-24 10:54:46 +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
…
rebuild_zebra.pl Bug 23084: Replace grep {^$var$} with grep {$_ eq $var} 2020-02-17 10:44:45 +00:00
rebuild_zebra_sliced.sh
…
remove_unused_authorities.pl Bug 21865: ES compatiblity of remove_unused_authorities.pl 2020-04-14 16:54:10 +01:00
switch_marc21_series_info.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
upgradeitems.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00