Bugzilla – Attachment 16060 Details for
Bug 9695
Use alphabet system preference on page used to browse patrons for patron card batches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9695 - Use alphabet system preference on page used to browse patrons for patron card batches
Bug-9695---Use-alphabet-system-preference-on-page-.patch (text/plain), 4.75 KB, created by
Jonathan Druart
on 2013-03-12 11:24:51 UTC
(
hide
)
Description:
Bug 9695 - Use alphabet system preference on page used to browse patrons for patron card batches
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-03-12 11:24:51 UTC
Size:
4.75 KB
patch
obsolete
>From 0c164cac6d2a1ca17f29a0d9128ba09cf2bb776a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 <dcook@prosentient.com.au> > >The patch adds consistency to the interface and works as described. >--- > .../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){ > > <div class="browse"> > Browse by last name: >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=a&batch_id=[% batch_id %]">A</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=b&batch_id=[% batch_id %]">B</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=c&batch_id=[% batch_id %]">C</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=d&batch_id=[% batch_id %]">D</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=e&batch_id=[% batch_id %]">E</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=f&batch_id=[% batch_id %]">F</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=g&batch_id=[% batch_id %]">G</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=h&batch_id=[% batch_id %]">H</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=i&batch_id=[% batch_id %]">I</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=j&batch_id=[% batch_id %]">J</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=k&batch_id=[% batch_id %]">K</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=l&batch_id=[% batch_id %]">L</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=m&batch_id=[% batch_id %]">M</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=n&batch_id=[% batch_id %]">N</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=o&batch_id=[% batch_id %]">O</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=p&batch_id=[% batch_id %]">P</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=q&batch_id=[% batch_id %]">Q</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=r&batch_id=[% batch_id %]">R</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=s&batch_id=[% batch_id %]">S</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=t&batch_id=[% batch_id %]">T</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=u&batch_id=[% batch_id %]">U</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=v&batch_id=[% batch_id %]">V</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=w&batch_id=[% batch_id %]">W</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=x&batch_id=[% batch_id %]">X</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=y&batch_id=[% batch_id %]">Y</a> >- <a href="/cgi-bin/koha/patroncards/members-search.pl?member=z&batch_id=[% batch_id %]">Z</a> >+ [% FOREACH letter IN alphabet.split(' ') %] >+ <a href="/cgi-bin/koha/patroncards/members-search.pl?member=[% letter %]&batch_id=[% batch_id %]">[% letter %]</a> >+ [% END %] > </div> > > <form method="get" action="/cgi-bin/koha/patroncards/members-search.pl"><p> >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.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9695
:
15896
|
16052
| 16060