Bug 28864: Have patron card creator use PatronsPerPage
authorMichael Hafen <michael.hafen@washk12.org>
Fri, 13 Aug 2021 21:52:52 +0000 (15:52 -0600)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 1 Aug 2022 12:53:24 +0000 (09:53 -0300)
commit5ca665f6aaf750fa507875343da0adb423ad7bd8
tree83d8c483e728e21d251d024e0c905b32844149ba
parent945339b757e6fdc2c216b405c0afd3bfb42a3de0
Bug 28864: Have patron card creator use PatronsPerPage

Add pageLength to members/member.tt
Add aLengthMenu and pageLength to
 patroncards/add_user_search (common/patron_search.tt).
Add aLengthMenu, pageLength, and iDisplayLength to patroncards/edit-batch

Test plan:
1.  Set the PatronsPerPage system preference to any integer other than 20.

2.  Go to Tools -> Patron card creator.
3.  Start a new Card Batch.
4.  Click the 'Add patron(s)' button to open the patron search window.
5.  Do a search.
6.  Add more than 20 patrons to the batch.
7.  Close patron search window.
8.  Click the 'Add patron(s)' button to add the selected patrons to the batch.
9.  Observe that the table of patrons is has 20 as the default per page setting.

10. Apply patch.
11. Reload the batch.
12. Observe that the per page drop down includes the value of PatronsPerPage
     and that value is selected by default.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt