]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 18 Jul 2024 20:03:17 +0000 (20:03 +0000)
commit8e7ea9baafcba3e02a4c13ba707b4f45abf5c695
tree5ac1c59616d4b80d79b3593c166628a8ba6ed0c8
parent591da06a39083981f1076dc82d9dd25a978444e2
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>
authorities/merge.pl
koha-tmpl/intranet-tmpl/prog/en/includes/merge-record.inc
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt