]> git.koha-community.org Git - koha.git/commit
Bug 25387: Warn when merging different authority types
authorMarion Durand <marion.durand@biblibre.com>
Wed, 6 Oct 2021 12:49:58 +0000 (14:49 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 19 Jul 2024 09:30:07 +0000 (11:30 +0200)
commit4dabf28e225331353c5f02cd65c80eed63fa68f2
tree149e8e2c60a43c8e98f1f2579d6f219c6d95c3c3
parent33c17e7adba5eaf4367121f8a6d0636cea2a85fc
Bug 25387: Warn when merging different authority types

Merging two different authorities types can result in the loss of some
field. This patch adds a warning when merging different type of
authorities and add more display of authorities types during merge.

To test:
1- Find two authorities you what to merge. Be sure that these
authorities have different type
2- Search for these authorities (be sure to have both results on the
results page)
3- For the first authority click on "Actions" then on "Merge", same for
the second one
4- Check that koha is asking you to choose a framework and that
authority types are not displayed
5- Choose a framework, then click on next
6- Check that the authority type is not displayed in the tabs and that
no warning appear
7- Apply the patch
8- Repeat step 1 to 3 again
9- Check that authority type is now displayed next to their ID
10- Repeate setp 5 again
11- Check that the authority types is now displayed in the tabs next to
their ID and that a warning appear

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit b2ae5380b0741e1d2277a58f264df88f243ecadb)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 8e7ea9baafcba3e02a4c13ba707b4f45abf5c695)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
authorities/merge.pl
koha-tmpl/intranet-tmpl/prog/en/includes/merge-record.inc
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt