From 1c02dcb92c6fc67fef7adfd209826f166e5b2902 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 Content-Type: text/plain; charset="utf-8" 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. --- .../prog/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 f34c2bd..c3a1df7 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 6c27095..ef7a776 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__ -- 1.7.9.5