]> git.koha-community.org Git - koha.git/commit
Bug 29511: Sort hash keys
authorNick Clemens <nick@bywatersolutions.com>
Tue, 23 Nov 2021 13:39:57 +0000 (13:39 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 21 Feb 2022 15:22:39 +0000 (15:22 +0000)
commit8a0602843ecad54761481b5f2133ecbbb95b7f5d
tree1e1341631257846fe2dfe5698c7a1123527f769c
parentd5ecd99396b1454b71566b6893cf5a06cfaffb4e
Bug 29511: Sort hash keys

This code exists in authorities/authorities.pl and the hash keys are sorted
I just do the same here

To test:
1 - Find/create a record with 245a 245h populated
2 - Load/reload the record several times and note that fields c and b are ordered randomly
3 - Apply patch
4 - Reload and note c and b are ordered alphabetically
5 - Move subfield h before subfield c
6 - Save and reload
7 - Confirm that existing/filled fields retain order in the MARC record

Signed-off-by: Hayley Pelham <hayleypelham@catalyst.net.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit d5db394e65c0c16d924a195bf68abefc2375a1a4)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
cataloguing/addbiblio.pl