Bug 25387: The order of authority subfield is not sent over to bibliographic record
authorMarion Durand <marion.durand@biblibre.com>
Fri, 8 Oct 2021 14:58:36 +0000 (16:58 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 25 Oct 2022 14:17:54 +0000 (11:17 -0300)
commitfadf26c430de27765f1b3ab9fe9c2f1f26095203
tree1c98fdf5a113bd581035b9a2d2595d2d3a451ed3
parent93d44d18759d43a09f6c623ffe4fa81dca4dcaa2
Bug 25387: The order of authority subfield is not sent over to bibliographic record

When creating an authority record there is the possibility to reorder
the subfield. However this order is not sent back to the bibliographic
records when using this authority in a bibliographic record.

This patch make the order of subfield be sent back to bibliographic
record when the autority is used.
Field that are fill are sent to the begining of the bibliographic record
in the same order as in the authority record.

Test plan:
1- Find or create an authority record and reorder some subfield
2- Use this authority in a bibliographic record
3- Observe that the order of the subfield is not transferred from the
   authority record to the bibliographic record
4- Apply the patch
5- Repeat step 1 and 2 again
6- Observe that the order of the subfield is now transferred from the
   authority record to the bibliographic record

https://bugs.koha-community.org/show_bug.cgi?id=22666

Signed-off-by: George Veranis <gveranis@dataly.gr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt