From d8ad37612844865d8fe3403c1a721c78c2f6d13f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 5 Mar 2013 16:10:19 -0500 Subject: [PATCH] Bug 9695 - Use alphabet system preference on page used to browse patrons for patron card batches When adding patrons to a batch for creating patron cards, the template shows alphabet links for browsing all patrons. This patch converts the hard-coded alphabet links to use the new alphabet system preference. To test, go to the patron card creator and create a new batch. Click "Add items" to pop up the window for browsing for patrons to add to the batch. You should see a working array of alphabet letters which link to patron search results. Signed-off-by: David Cook The patch adds consistency to the interface and works as described. Signed-off-by: Jonathan Druarth Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- .../en/modules/patroncards/members-search.tt | 29 ++----------------- patroncards/members-search.pl | 2 ++ 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/members-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/members-search.tt index f34c2bd016..c3a1df75fc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/members-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/members-search.tt @@ -49,32 +49,9 @@ function add_item(borrowernum,batch_id,type_id){
Browse by last name: - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z + [% FOREACH letter IN alphabet.split(' ') %] + [% letter %] + [% END %]

diff --git a/patroncards/members-search.pl b/patroncards/members-search.pl index 6c27095377..ef7a7760f1 100755 --- a/patroncards/members-search.pl +++ b/patroncards/members-search.pl @@ -122,6 +122,8 @@ else { $template->param( batch_id => $batch_id); } +$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ); + output_html_with_http_headers $cgi, $cookie, $template->output; __END__ -- 2.39.5