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

--- Comment #18 from Andrew Fuerste-Henry <[email protected]> ---
Created attachment 212449
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212449&action=edit
Bug 26867: Preserve alphabetical sorting by default

Keep the report's previous plain-text ordering unless a library selects
classification sorting. Use alphabetical for fresh installations and
new preference creation, and for missing, empty or unrecognized values.
Preserve every existing saved preference value on upgrade.

Create the Cypress items through Koha's item API so their LCC keys are
generated by Item->store. Keep direct database overrides only for the
missing and empty key controls. Cover both sorting modes and the
unconfigured preference cases.

Test plan:
Continue the report checks in the preceding patch, with this correction:
1. Edit each of the three test items.
2. Set "2 - Source of classification or shelving scheme" to
   "Library of Congress Classification".
3. Save the item before opening the report.

On a fresh installation, or an upgrade where the preference does not yet
exist, confirm HoldsCallnumberSortToPull starts as "alphabetically
(as plain text)". Selecting "by classification sort key (cn_sort)"
should give JC43, JC330, JC480 in ascending order. Alphabetical should
give JC330, JC43, JC480. Check the reverse orders too.
An existing saved classification value must survive the upgrade.

Automated tests:
yarn cypress run --spec \
  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/

Reply via email to