[Koha-bugs] [Bug 29511] While editing MARC records, subfields appear in varying order

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 22 01:58:16 CET 2021


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

Hayley Pelham <hayleypelham at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #127955|0                           |1
        is obsolete|                            |

--- Comment #3 from Hayley Pelham <hayleypelham at catalyst.net.nz> ---
Created attachment 128856
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128856&action=edit
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 at catalyst.net.nz>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list