Bugzilla – Attachment 11170 Details for
Bug 8514
Display of patron results changed display order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-8514-Restore-Patron-Name-Display-Order.patch (text/plain), 4.08 KB, created by
Colin Campbell
on 2012-07-27 15:41:33 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Colin Campbell
Created:
2012-07-27 15:41:33 UTC
Size:
4.08 KB
patch
obsolete
>From 1bd089858899de6320090e40899b72851f936d88 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Fri, 27 Jul 2012 16:32:49 +0100 >Subject: [PATCH] Bug 8514 Restore Patron Name Display Order > >Bug 6303 introduced an include file governing patron name display >unfortunately that changed patron display in search result lists and >on the circ screen header. This adds a parameter restroring the >original surname, firstname order, whose absence was perceived >as a loss of functionality >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc | 6 +++++- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 6 +++++- > koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 6 ++++-- > 3 files changed, 14 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc >index d07a449..c05c9be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc >@@ -1,6 +1,10 @@ > [% IF category_type == 'I' %] > [% surname %] [% IF othernames %] ([% othernames %]) [% END %] > [% ELSE %] >- [% firstname %] [% surname %] >+ [% IF invert_name %] >+ [% surname %], [% firstname %] >+ [% ELSE %] >+ [% firstname %] [% surname %] >+ [% END %] > [% END %] > ([% cardnumber %]) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 6f72392..1d6bf75 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -1,6 +1,10 @@ > [% USE KohaDates %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Circulation [% IF ( borrowernumber ) %] › Checking out to [% INCLUDE 'patron-title.inc' %] [% END %]</title> >+<title>Koha › Circulation >+[% IF borrowernumber %] >+ › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %] >+[% END %] >+</title> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] > [% IF ( UseTablesortForCirc ) %]<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >index e226c04..d17d893 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >@@ -60,8 +60,10 @@ > [% END %] > [% END %] > <td>[% resultsloo.cardnumber %]</td> >- <td style="white-space: nowrap;"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resultsloo.borrowernumber %]"> >- [% INCLUDE 'patron-title.inc' category_type = resultsloo.category_type firstname = resultsloo.firstname surname = resultsloo.surname othernames = resultsloo.othernames cardnumber = resultsloo.cardnumber %]</a> <br /> >+ <td style="white-space: nowrap;"> >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resultsloo.borrowernumber %]"> >+ [% INCLUDE 'patron-title.inc' category_type = resultsloo.category_type firstname = resultsloo.firstname surname = resultsloo.surname othernames = resultsloo.othernames cardnumber = resultsloo.cardnumber invert_name = 1%] >+ </a> <br /> > [% IF ( resultsloo.streetnumber ) %][% resultsloo.streetnumber %] [% END %][% resultsloo.address %][% IF ( resultsloo.address2 ) %]<br />[% resultsloo.address2 %][% END %][% IF ( resultsloo.city ) %]<br />[% resultsloo.city %][% IF ( resultsloo.state ) %],[% END %][% END %][% IF ( resultsloo.state ) %] [% resultsloo.state %][% END %] [% IF ( resultsloo.zipcode ) %] [% resultsloo.zipcode %][% END %][% IF ( resultsloo.country ) %], [% resultsloo.country %][% END %]</td> > <td>[% resultsloo.category_description %] ([% resultsloo.category_type %])</td> > <td>[% resultsloo.branchcode %]</td> >-- >1.7.11.2.249.g31c7954 >
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 8514
:
11170
|
11171