Koha-clms/misc/migration_tools
Matthias Meusburger fc8e4393ca Bug 18273: Do not insert authority if there already are duplicates in koha
Test plan:

1) Create an authority with a unique value in a searchable field, for instance a PERSO_NAME authority with 'BZ18273' in the 100$a field.

2) Create a second authority with the same value in the same field.

3) Export this second authority as iso2709 (Save -> MARC (Unicode/UTF-8))

4) Run bulkmarcimport.pl with the following parameters:
perl bulkmarcimport.pl -a --file=/kohadevbox/koha/auth-xxxx.utf8 --match='Heading,100$a' -l /kohadevbox/koha/bulk.log

5) Check in the log file and/or through search that a third authority has been added (despite using the --match option)

6) Apply the patch

7) Delete the 3 authorities and repeat step 1 to 4.

8) Check that a third authority has not been added (--match worked)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2e2fba91bf)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0acc0dffb1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-13 15:33:56 +01:00
..
22_to_30 Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00
ifla Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
buildCOUNTRY.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
buildEDITORS.pl Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00
buildLANG.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
build_oai_sets.pl Bug 35442: Script migration_tools/build_oai_sets.pl add ORDER BY 2024-12-06 12:23:36 +01:00
bulkmarcimport.pl Bug 18273: Do not insert authority if there already are duplicates in koha 2024-12-13 15:33:56 +01:00
checkNonIndexedBiblios.pl Bug 28617: Remove kohalib.pl and rely on PERL5LIB 2021-12-07 12:16:28 -10:00
create_analytical_rel.pl Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00
import_lexile.pl Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files 2024-11-05 15:43:13 +01:00
koha-svc.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
rebuild_zebra.pl Revert "Bug 15187: Index 880 in Zebra the same as Elasticsearch" 2022-10-24 14:03:44 -03: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 30939: Fix use statement for DelAuthority 2022-06-28 09:39:24 -03:00
switch_marc21_series_info.pl Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00
upgradeitems.pl Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00