https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26867
--- Comment #17 from Andrew Fuerste-Henry <[email protected]> --- Created attachment 212448 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212448&action=edit Bug 26867: Sort Holds to pull by the selected call number key The report sorts displayed call numbers as plain text. Classification numbers such as JC43 and JC330 consequently appear in the wrong order. Use cn_sort in classification mode and the displayed call number in alphabetical mode, for both aggregated values and table row ordering. Fall back to the displayed value for missing or empty classification keys, preserving a valid zero key. Keep displayed call numbers unchanged. Exercise both modes, ascending and descending order, aggregated items, missing sort keys, and restored table state with a preceding column hidden. Test plan: Before applying the patch: 1. Create available items with LCC call numbers JC43 .G6 1890, JC330 .F74 2000 and JC480 .R63 2006. Place holds on them. 2. Open Circulation > Holds to pull and sort Available call numbers. 3. Confirm ascending order is JC330, JC43, JC480. Apply the series and run the database updater. After applying the patch: 1. Set HoldsCallnumberSortToPull to classification in system preferences. 2. Reopen the report and sort Available call numbers. Confirm ascending JC43, JC330, JC480 and the reverse order when descending. 3. Save alphabetical in system preferences and reopen the report. Confirm ascending JC330, JC43, JC480 and its reverse when descending. 4. Restore classification and confirm the classification order returns. 5. Run t/cypress/integration/KohaTable/PendingHoldsCallNumbers_spec.ts. Co-Authored-By: Loontik <[email protected]> Signed-off-by: David Nind <[email protected]> Signed-off-by: Andrew Fuerste Henry <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
