]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 29 Jan 2022 07:52:54 +0000 (21:52 -1000)
commit331af91c48413cfc9a345104d3cc6858774b2cec
tree0dccc32954409ba460cc46ab6238c7aa7e778054
parentf5b62001228ba552f5be64a6ad9a2f6c806536ed
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>
cataloguing/addbiblio.pl