From 37a9a68de71161fb17bd427e4c913824e9004c8f Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Fri, 8 Sep 2023 22:04:05 +0000 Subject: [PATCH] Bug 32742: Patron's lists option are not in alphabetical order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch add sorting feature to the patron card lists export option To test 1. Go to Tools > Patron lists 2. Create a new patron list 3. Add 10 patrons in a random order (not in alphabetical nor in cardnumber sequence) 4. Go back to Tools > Patron lists management page 5. Find your list, click on 'Action' and select 'Print patron cards' 6. Check the cards order in the pdf --> notice these cards aren't in alphabetical order. 7. Apply the patch 8. Repeat step 4, 5 9. Fill the «Order by» field and submit 10. Check the cards order in the pdf --> notice the cards are now ordered. Signed-off-by: Émily-Rose Francoeur --- .../prog/en/modules/patroncards/print.tt | 13 ++++++++++++- patroncards/create-pdf.pl | 2 ++ patroncards/print.pl | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt index 5282c640e8..eac2ea58f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt @@ -47,7 +47,7 @@

Click on the link to download the patron cards from the patron list.

- label_patronlist_[% patronlist_id | html %].pdf + label_patronlist_[% patronlist_id | html %].pdf

[% ELSE %] @@ -76,6 +76,17 @@ [% IF (patronlist_id) %] [% END %]
    + [% IF (patronlist_id) %] +
  1. + + +
  2. + [% END %]