From 568327592a5ba1f1699c1bd108bc64c97882738b Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Tue, 20 Jul 2021 12:12:42 -0600 Subject: [PATCH] Bug 28726: Add sort1 and sort2 to patron card creator - patron search. Content-Type: text/plain; charset="utf-8" Also adds a select all / clear all and checkboxes. Test plan: 1. start a new batch in the patron card creator (Tools -> Patron card creator -> New -> card batch) 2. click the Add patron(s) button. Observe that Category and Library are the only options. 3. Close search for patron window. 4. Apply patch. 5. click the Add patron(s) button. Observe that you can now search for patrons by their sort1 and sort2 values. 6. perform a search and observe the 'Select all | Clear all | Add selected patrons' links and button. 7. use the Select all link to select all the patrons found by the search. 8. use the Add selected patrons button to add the selected patrons to the card batch's Add by borrowernumber(s) text input field. 9. close the search for patron window. --- .../prog/en/includes/patron-search.inc | 54 +++++++++++++++++-- .../prog/en/modules/members/search.tt | 45 +++++++++++++++- .../prog/en/modules/patroncards/edit-batch.tt | 2 +- members/search.pl | 16 ++++++ 4 files changed, 112 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 7212814b25..cda497c66b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -55,12 +55,32 @@ [% END %] + [% CASE 'sort1' %] +
  • + + +
  • + [% CASE 'sort2' %] +
  • + + +
  • [% CASE 'search_field' %]