[Koha-bugs] [Bug 24156] Basket - Make sort order and number of items to display configurable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 13 15:41:58 CET 2020


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

--- Comment #23 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 98847
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98847&action=edit
Bug 24156: Make sort order and number of items to display configurable (basket
page)

This patch is the main patch of this patchset, you will find the
description and the test plan.

The idea of this new enhancement is to add the ability to define the
default sort order and the default number of rows displayed on the
acquisition basket page.
The existing "columns settings" feature was replaced by a
"tables settings" feature. To prepare the ground, there were some
works that were needed:
  * rename variables and files
  * Modify the structure of the yml files
  * Create a new DB table to store the tables settings

Test plan:
0)
  a. Execute the update DB entry to create the new table
  b. Restart all (to get a new version of the yml file, that is cached by
   memcached)
  c. Create several orders for a given basket
1) Go to the basket view page
=> The default values are the same than without this patchset, the
number of entries to display is set to "20" and the table is sorted by
basket number (first column)
2) Go to the "Columns settings" page
3) Unfold the "Acquisition" tab
=> Notice the 2 dropdown lists at the bottom of the basket table
4) Select different values for "Default display length" and "Default
sort order"
5) Refresh the basket view page
=> Notice that the default settings are now effective on the table

QA note: We can decide to replace the different occurrences of "Columns
settings"
by "Tables settings" if needed.

Sponsored-by: Institute of Technology Tallaght

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


More information about the Koha-bugs mailing list